From 45ccf059ed352b12061235ef0dd794640abdc69c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Ram=C3=ADrez?= Date: Sat, 15 Dec 2018 21:59:25 +0400 Subject: [PATCH] :pencil2: Fix typos from @mariacamilagl 's review --- docs/tutorial/body.md | 2 +- docs/tutorial/path-params.md | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/tutorial/body.md b/docs/tutorial/body.md index 85a06a147..ee7a540ac 100644 --- a/docs/tutorial/body.md +++ b/docs/tutorial/body.md @@ -83,7 +83,7 @@ You also get error checks for incorrect type operations: -This is not by chance, the whole framework was built around that desing. +This is not by chance, the whole framework was built around that design. And it was thoroughly tested at the design phase, before any implementation, to ensure it would work with all the editors. diff --git a/docs/tutorial/path-params.md b/docs/tutorial/path-params.md index 5a381581e..8834573a9 100644 --- a/docs/tutorial/path-params.md +++ b/docs/tutorial/path-params.md @@ -59,13 +59,13 @@ But if you go to the browser at http://127.0.0.1:8000/items/4.2 +The same error would appear if you provided a `float` instead of an int, as in: http://127.0.0.1:8000/items/4.2 !!! check So, with the same Python type declaration, **FastAPI** gives you data validation. - Notice that the error also clearly states exactly the point where the validaton didn't pass. + Notice that the error also clearly states exactly the point where the validation didn't pass. This is incredibly helpful while developing and debugging code that interacts with your API. @@ -109,4 +109,4 @@ With **FastAPI**, by using short, intuitive and standard Python type declaration And you only have to declare them once. -That's probably the main visible advantage of **FastAPI** compared to alternative frameworks (appart from the raw performance). \ No newline at end of file +That's probably the main visible advantage of **FastAPI** compared to alternative frameworks (apart from the raw performance). \ No newline at end of file