]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
:pencil2: Fix typos (#920)
authorMaciej Marzęta <94maciekm@gmail.com>
Tue, 4 Feb 2020 04:04:32 +0000 (05:04 +0100)
committerGitHub <noreply@github.com>
Tue, 4 Feb 2020 04:04:32 +0000 (05:04 +0100)
README.md
docs/index.md

index 69bd6a3385561d6d2c3ead0d3792b2b2cfe58bb9..9f9c440978594b395b46c05afdfc38e9911ab66f 100644 (file)
--- a/README.md
+++ b/README.md
@@ -319,7 +319,7 @@ Coming back to the previous code example, **FastAPI** will:
     * Without the `None` it would be required (as is the body in the case with `PUT`).
 * For `PUT` requests to `/items/{item_id}`, Read the body as JSON:
     * Check that it has a required attribute `name` that should be a `str`. 
-    * Check that is has a required attribute `price` that has to be a `float`.
+    * Check that it has a required attribute `price` that has to be a `float`.
     * Check that it has an optional attribute `is_offer`, that should be a `bool`, if present.
     * All this would also work for deeply nested JSON objects.
 * Convert from and to JSON automatically.
index 69bd6a3385561d6d2c3ead0d3792b2b2cfe58bb9..9f9c440978594b395b46c05afdfc38e9911ab66f 100644 (file)
@@ -319,7 +319,7 @@ Coming back to the previous code example, **FastAPI** will:
     * Without the `None` it would be required (as is the body in the case with `PUT`).
 * For `PUT` requests to `/items/{item_id}`, Read the body as JSON:
     * Check that it has a required attribute `name` that should be a `str`. 
-    * Check that is has a required attribute `price` that has to be a `float`.
+    * Check that it has a required attribute `price` that has to be a `float`.
     * Check that it has an optional attribute `is_offer`, that should be a `bool`, if present.
     * All this would also work for deeply nested JSON objects.
 * Convert from and to JSON automatically.