From 3ce2920fef29058507868798cc27404cd1bc555b Mon Sep 17 00:00:00 2001 From: Stratos Gerakakis Date: Fri, 29 Mar 2019 15:39:57 +0100 Subject: [PATCH] :bug: fix name of shutdown_event in docs (#105) Fix name copy/paste name error in docs source for startup/shutdown events. --- docs/src/events/tutorial002.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/events/tutorial002.py b/docs/src/events/tutorial002.py index e28d5f5ba..a71fea802 100644 --- a/docs/src/events/tutorial002.py +++ b/docs/src/events/tutorial002.py @@ -4,7 +4,7 @@ app = FastAPI() @app.on_event("shutdown") -def startup_event(): +def shutdown_event(): with open("log.txt", mode="a") as log: log.write("Application shutdown")