]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
:pencil2: Fix typos in docs, from forms (#176)
authorChristopher Dignam <chris@dignam.xyz>
Sat, 27 Apr 2019 13:05:06 +0000 (09:05 -0400)
committerSebastián Ramírez <tiangolo@gmail.com>
Sat, 27 Apr 2019 13:05:06 +0000 (17:05 +0400)
docs/tutorial/bigger-applications.md
docs/tutorial/cors.md
docs/tutorial/debugging.md
docs/tutorial/sql-databases.md

index 3bf406f3afebe94cb7889d9a61f351146af5466e..7adbab77c7d308d8970591cd56826f6cf87009ad 100644 (file)
@@ -229,7 +229,7 @@ It will include all the routes from that router as part of it.
 
 ### Include an `APIRouter` with a `prefix`, `tags`, and `responses`
 
-Now, let's include the router form the `items` submodule.
+Now, let's include the router from the `items` submodule.
 
 But, remember that we were lazy and didn't add `/items/` nor `tags` to all the *path operations*?
 
index c4cf6641c531c244c7ea9f18ad3711c87fb54967..d37822b4fb0b6728e6cbb6e001300c1a31ecdff8 100644 (file)
@@ -34,7 +34,7 @@ So, for everything to work correctly, it's better to specify explicitly the allo
 
 You can configure it in your **FastAPI** application using Starlette's <a href="https://www.starlette.io/middleware/#corsmiddleware" target="_blank">`CORSMiddleware`</a>.
 
-* Import it form Starlette.
+* Import it from Starlette.
 * Create a list of allowed origins (as strings).
 * Add it as a "middleware" to your **FastAPI** application.
 
index b23ffcec7de3ea2302a804196c8463315fdf8822..67d23c6e1e08743e7564f798581e1a94428308a0 100644 (file)
@@ -69,7 +69,7 @@ will not be executed.
 
 ## Run your code with your debugger
 
-Because you are running the Uvicorn server directly from your code, you can call your Python program (your FastAPI application) directly form the debugger.
+Because you are running the Uvicorn server directly from your code, you can call your Python program (your FastAPI application) directly from the debugger.
 
 ---
 
index bf2b86fb93aa24c5cad3cf9f2fcbd47655cae76b..d17c84fc18d718b7efcf87d8ec029275e66ebc32 100644 (file)
@@ -84,7 +84,7 @@ Each instance of the `SessionLocal` class will have a connection to the database
 
 This object (class) is not a connection to the database yet, but once we create an instance of this class, that instance will have the actual connection to the database.
 
-We name it `SessionLocal` to distinguish it form the `Session` we are importing from SQLAlchemy.
+We name it `SessionLocal` to distinguish it from the `Session` we are importing from SQLAlchemy.
 
 We will use `Session` to declare types later and to get better editor support and completion.