forked from orbit-oss/flask
Update dbcon.rst
"Teared" should be "torn", I think?
This commit is contained in:
parent
9fb52d5e02
commit
171253a0eb
1 changed files with 1 additions and 1 deletions
|
|
@ -51,7 +51,7 @@ decorator. It's executed every time the application context tears down::
|
||||||
Functions marked with :meth:`~flask.Flask.teardown_appcontext` are called
|
Functions marked with :meth:`~flask.Flask.teardown_appcontext` are called
|
||||||
every time the app context tears down. So what does this mean?
|
every time the app context tears down. So what does this mean?
|
||||||
Essentially the app context is created before the request comes in and is
|
Essentially the app context is created before the request comes in and is
|
||||||
destroyed (teared down) whenever the request finishes. A teardown can
|
destroyed (torn down) whenever the request finishes. A teardown can
|
||||||
happen because of two reasons: either everything went well (the error
|
happen because of two reasons: either everything went well (the error
|
||||||
parameter will be `None`) or an exception happened in which case the error
|
parameter will be `None`) or an exception happened in which case the error
|
||||||
is passed to the teardown function.
|
is passed to the teardown function.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue