mirror of https://github.com/tiangolo/fastapi.git
🐛 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:
parent
825f397918
commit
3ce2920fef
|
|
@ -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")
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue