Fix typo 'ether' -> 'either' (#372)

This commit is contained in:
Dexter Castor Döpping 2022-06-09 21:31:52 +02:00 committed by GitHub
parent e97398356b
commit 38b1537d1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1060,7 +1060,7 @@ particular param tag. A shorthand has been introduced for this common case, whic
This is useful for larger projects where you want to provide the argument and return value
types for your API, in a structured way that can be easily extracted later.
These types can be combined, so that "?string|number" means "ether a string or a number";
These types can be combined, so that "?string|number" means "either a string or a number";
"?string" is short for "?|nil|string". However, for this last case you should usually use the
`opt` modifier discussed below.