]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
✏️ Fix typo in Tutorial - Path Parameters (#2231)
authorCamila Gutierrez <mariacamilagl@users.noreply.github.com>
Thu, 5 Nov 2020 22:53:10 +0000 (23:53 +0100)
committerGitHub <noreply@github.com>
Thu, 5 Nov 2020 22:53:10 +0000 (23:53 +0100)
docs/en/docs/tutorial/path-params.md

index 4f59069fd28cafde12009c1ea0c5780dd43dedc3..9c458844d37cbac5b78f025ed02640a59cdbde8a 100644 (file)
@@ -61,7 +61,7 @@ But if you go to the browser at <a href="http://127.0.0.1:8000/items/foo" class=
 
 because the path parameter `item_id` had a value of `"foo"`, which is not an `int`.
 
-The same error would appear if you provided a `float` instead of an int, as in: <a href="http://127.0.0.1:8000/items/4.2" class="external-link" target="_blank">http://127.0.0.1:8000/items/4.2</a>
+The same error would appear if you provided a `float` instead of an `int`, as in: <a href="http://127.0.0.1:8000/items/4.2" class="external-link" target="_blank">http://127.0.0.1:8000/items/4.2</a>
 
 !!! check
     So, with the same Python type declaration, **FastAPI** gives you data validation.