✏️ fix typo in fastapi

This commit is contained in:
AkiraXie 2022-02-04 15:13:31 +08:00
parent e8bb66ca48
commit a68a6e2659

View File

@ -136,7 +136,7 @@ class Driver(ReverseDriver):
@overrides(ReverseDriver) @overrides(ReverseDriver)
def on_shutdown(self, func: Callable) -> Callable: def on_shutdown(self, func: Callable) -> Callable:
"""参考文档: `Events <https://fastapi.tiangolo.com/advanced/events/#startup-event>`_""" """参考文档: `Events <https://fastapi.tiangolo.com/advanced/events/#shutdown-event>`_"""
return self.server_app.on_event("shutdown")(func) return self.server_app.on_event("shutdown")(func)
@overrides(ReverseDriver) @overrides(ReverseDriver)