forked from orbit-oss/flask
Merge pull request #3317 from csirmazbendeguz/patch-1
Fix typo in urlprocessors.rst
This commit is contained in:
commit
ca0acbaa53
1 changed files with 2 additions and 2 deletions
|
|
@ -39,8 +39,8 @@ generate URLs from one function to another you would have to still provide
|
||||||
the language code explicitly which can be annoying.
|
the language code explicitly which can be annoying.
|
||||||
|
|
||||||
For the latter, this is where :func:`~flask.Flask.url_defaults` functions
|
For the latter, this is where :func:`~flask.Flask.url_defaults` functions
|
||||||
come in. They can automatically inject values into a call for
|
come in. They can automatically inject values into a call to
|
||||||
:func:`~flask.url_for` automatically. The code below checks if the
|
:func:`~flask.url_for`. The code below checks if the
|
||||||
language code is not yet in the dictionary of URL values and if the
|
language code is not yet in the dictionary of URL values and if the
|
||||||
endpoint wants a value named ``'lang_code'``::
|
endpoint wants a value named ``'lang_code'``::
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue