🐛 fix name of shutdown_event in docs (#105)

Fix name copy/paste name error in docs source for startup/shutdown events.
This commit is contained in:
Stratos Gerakakis 2019-03-29 15:39:57 +01:00 committed by Sebastián Ramírez
parent 825f397918
commit 3ce2920fef
1 changed files with 1 additions and 1 deletions

View File

@ -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")