]> git.ipfire.org Git - thirdparty/fastapi/sqlmodel.git/commitdiff
📝 Fix typo in `docs/tutorial/fastapi/simple-hero-api.md` (#1583)
authorKofi Kusi Appau <appaukusi05@gmail.com>
Mon, 29 Sep 2025 16:08:08 +0000 (16:08 +0000)
committerGitHub <noreply@github.com>
Mon, 29 Sep 2025 16:08:08 +0000 (18:08 +0200)
📝 Update function name from create_tables to create_db_and_tables

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

index 163fa281b13e111b4e261b65bcd9565037376ee0..79cf075e1bfcd98a35e4b43c603f1ad6691f373d 100644 (file)
@@ -60,7 +60,7 @@ And then create an `app` object that is an instance of that `FastAPI` class:
 
 ## Create Database and Tables on `startup`
 
-We want to make sure that once the app starts running, the function `create_tables` is called. To create the database and tables.
+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.
 
 This should be called only once at startup, not before every request, so we put it in the function to handle the `"startup"` event: