From 1a40d9b9761b304150c3b82c656dbb0e425e8e2e Mon Sep 17 00:00:00 2001 From: Seth Rutner Date: Tue, 21 Sep 2021 15:44:39 -0700 Subject: [PATCH] fix grammar in links to app and request context --- docs/appcontext.rst | 2 +- docs/reqcontext.rst | 6 +++--- docs/shell.rst | 3 +-- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/docs/appcontext.rst b/docs/appcontext.rst index 681764941d..b214f254e6 100644 --- a/docs/appcontext.rst +++ b/docs/appcontext.rst @@ -8,7 +8,7 @@ a request, CLI command, or other activity. Rather than passing the application around to each function, the :data:`current_app` and :data:`g` proxies are accessed instead. -This is similar to the :doc:`/reqcontext`, which keeps track of +This is similar to :doc:`/reqcontext`, which keeps track of request-level data during a request. A corresponding application context is pushed when a request context is pushed. diff --git a/docs/reqcontext.rst b/docs/reqcontext.rst index 31a83cffef..b67745edbe 100644 --- a/docs/reqcontext.rst +++ b/docs/reqcontext.rst @@ -8,7 +8,7 @@ request. Rather than passing the request object to each function that runs during a request, the :data:`request` and :data:`session` proxies are accessed instead. -This is similar to the :doc:`/appcontext`, which keeps track of the +This is similar to :doc:`/appcontext`, which keeps track of the application-level data independent of a request. A corresponding application context is pushed when a request context is pushed. @@ -33,8 +33,8 @@ Lifetime of the Context ----------------------- When a Flask application begins handling a request, it pushes a request -context, which also pushes an :doc:`/appcontext`. When the request ends -it pops the request context then the application context. +context, which also pushes an :doc:`app context `. When the +request ends it pops the request context then the application context. The context is unique to each thread (or other worker type). :data:`request` cannot be passed to another thread, the other thread diff --git a/docs/shell.rst b/docs/shell.rst index 47efba3784..7e42e28515 100644 --- a/docs/shell.rst +++ b/docs/shell.rst @@ -21,8 +21,7 @@ that these functions are not only there for interactive shell usage, but also for unit testing and other situations that require a faked request context. -Generally it's recommended that you read the :doc:`reqcontext` -chapter of the documentation first. +Generally it's recommended that you read :doc:`reqcontext` first. Command Line Interface ----------------------