]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
✏ Fix typos and add rewording in docs (#2159)
authornukopy <pytwbf201830@gmail.com>
Thu, 5 Nov 2020 22:33:06 +0000 (07:33 +0900)
committerGitHub <noreply@github.com>
Thu, 5 Nov 2020 22:33:06 +0000 (23:33 +0100)
* docs: fix typo in chapter "Request Body" in "Tutorial - User Guide"

* docs: modify a sentence in chapter "Query Parameters and String Validations" in "Tutorial - User Guide"

* docs: fix two grammatical mistakes in chapter "Path Parameters and Numeric Validations" in "Tutorial - User Guide"

docs/en/docs/tutorial/body.md
docs/en/docs/tutorial/path-params-numeric-validations.md
docs/en/docs/tutorial/query-params-str-validations.md

index 2afc979989058a174b54d856aa64beb59af215eb..24b2285968eb0056c54d5bba94ce1288e5067e17 100644 (file)
@@ -131,7 +131,7 @@ Inside of the function, you can access all the attributes of the model object di
 
 ## Request body + path parameters
 
-You can declare path parameters and body requests at the same time.
+You can declare path parameters and request body at the same time.
 
 **FastAPI** will recognize that the function parameters that match path parameters should be **taken from the path**, and that function parameters that are declared to be Pydantic models should be **taken from the request body**.
 
index 1fcd9dbdbc685678304c546c747cfcb101db2f46..5da69a21b2ef31a8068a8dcd0b7e9cfe79ff4dec 100644 (file)
@@ -106,7 +106,7 @@ And you can also declare numeric validations:
 * `le`: `l`ess than or `e`qual
 
 !!! info
-    `Query`, `Path` and others you will see later subclasses of a common `Param` class (that you don't need to use).
+    `Query`, `Path`, and others you will see later are subclasses of a common `Param` class (that you don't need to use).
 
     And all of them share the same all these same parameters of additional validation and metadata you have seen.
 
index 4edb4f597256a3468267a7be7204c2a6c41d832f..8deccda0bd615bb7ddfd6c14930dafdfe924a64e 100644 (file)
@@ -17,7 +17,7 @@ The query parameter `q` is of type `Optional[str]`, that means that it's of type
 
 ## Additional validation
 
-We are going to enforce that even though `q` is optional, whenever it is provided, it **doesn't exceed a length of 50 characters**.
+We are going to enforce that even though `q` is optional, whenever it is provided, **its length doesn't exceed 50 characters**.
 
 ### Import `Query`