From 6e3bae04186f5b8df15f86c395a048269a733dd0 Mon Sep 17 00:00:00 2001 From: Kofi Kusi Appau Date: Mon, 29 Sep 2025 16:08:08 +0000 Subject: [PATCH] =?utf8?q?=F0=9F=93=9D=20Fix=20typo=20in=20`docs/tutorial/?= =?utf8?q?fastapi/simple-hero-api.md`=20(#1583)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 📝 Update function name from create_tables to create_db_and_tables --- docs/tutorial/fastapi/simple-hero-api.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tutorial/fastapi/simple-hero-api.md b/docs/tutorial/fastapi/simple-hero-api.md index 163fa281..79cf075e 100644 --- a/docs/tutorial/fastapi/simple-hero-api.md +++ b/docs/tutorial/fastapi/simple-hero-api.md @@ -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: -- 2.47.3