docs(veterinary): improve subject

- add trailing comma to keep consistency
- improve description of the function requested
This commit is contained in:
nprimo 2023-01-02 08:48:51 +01:00 committed by Niccolò Primo
parent 8d76f63f5c
commit 21ff0467e4
1 changed files with 2 additions and 2 deletions

View File

@ -7,9 +7,9 @@ To help him get introduced to your neighborhood, create an object `veterinary` w
- an array of string `animalKnowledge` that will store all the animal species the new veterinary can treat,
- a function `canTreat` that will receive a string as an argument and will return a boolean indicating if the string is present in the veterinary `animalKnowledge` array
- a function `canTreat` that will receive a string as an argument and will return a boolean indicating if the string is present in the veterinary `animalKnowledge` array,
- a function `respondClient` that will receive two string, the pet name and the animal species of the pet, and will return a string that will include `Yes` or `No` plus the pet name accordingly.
- a function `respondClient` that will receive two string, the pet name and the animal species of the pet, and will return a string that will include `Yes` or `No` plus the pet name depending on whether the pet can be treated or not, as in the example below.
### Example