From: Stratos Gerakakis Date: Fri, 29 Mar 2019 14:39:57 +0000 (+0100) Subject: :bug: fix name of shutdown_event in docs (#105) X-Git-Tag: 0.10.3~12 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3ce2920fef29058507868798cc27404cd1bc555b;p=thirdparty%2Ffastapi%2Ffastapi.git :bug: fix name of shutdown_event in docs (#105) Fix name copy/paste name error in docs source for startup/shutdown events. --- diff --git a/docs/src/events/tutorial002.py b/docs/src/events/tutorial002.py index e28d5f5ba5..a71fea8025 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")