Skip to content

Commit 6e3bae0

Browse files
authored
📝 Fix typo in docs/tutorial/fastapi/simple-hero-api.md (#1583)
📝 Update function name from create_tables to create_db_and_tables
1 parent ab79c22 commit 6e3bae0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/tutorial/fastapi/simple-hero-api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ And then create an `app` object that is an instance of that `FastAPI` class:
6060

6161
## Create Database and Tables on `startup`
6262

63-
We want to make sure that once the app starts running, the function `create_tables` is called. To create the database and tables.
63+
We want to make sure that once the app starts running, the function `create_db_and_tables` is called. To create the database and tables.
6464

6565
This should be called only once at startup, not before every request, so we put it in the function to handle the `"startup"` event:
6666

0 commit comments

Comments
 (0)