Skip to content

Commit

Permalink
fix grammar in links to app and request context
Browse files Browse the repository at this point in the history
  • Loading branch information
sprutner authored and davidism committed Oct 1, 2021
1 parent b4094b3 commit 1a40d9b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/appcontext.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
6 changes: 3 additions & 3 deletions docs/reqcontext.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand All @@ -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 </appcontext>`. 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
Expand Down
3 changes: 1 addition & 2 deletions docs/shell.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
----------------------
Expand Down

0 comments on commit 1a40d9b

Please sign in to comment.