Skip to content

Commit ddea4e9

Browse files
authored
Update extending.md (#2168)
I fixed some minor grammatical mistakes.
1 parent f7afa36 commit ddea4e9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/extending.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ Note that `addMethod` isn't magic, it mutates the prototype of the passed in sch
4747
4848
## Creating new Schema types
4949

50-
If you're use case calls for creating an entirely new type. inheriting from
51-
and existing schema class may be best: Generally you should not inheriting from
50+
If you're using case calls for creating an entirely new type, inheriting from
51+
an existing schema class may be best: Generally you should not be inheriting from
5252
the abstract `Schema` unless you know what you are doing. The other types are fair game though.
5353

5454
You should keep in mind some basic guidelines when extending schemas:
@@ -59,7 +59,7 @@ You should keep in mind some basic guidelines when extending schemas:
5959
- transforms should never mutate the `value` passed in, and should return an invalid object when one exists
6060
(`NaN`, `InvalidDate`, etc) instead of `null` for bad values.
6161

62-
- by the time validations run the `value` is guaranteed to be the correct type, however it still may
62+
- by the time validations run, the `value` is guaranteed to be the correct type, however it still may
6363
be `null` or `undefined`
6464

6565
```js

0 commit comments

Comments
 (0)