diff options
author | David Lord <davidism@gmail.com> | 2021-11-09 09:17:51 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-09 09:17:51 -0800 |
commit | e01e0a21f9157c5b09ea4131d94393fe347a2c82 (patch) | |
tree | cba60161a5ec9eb82b84787134704441007398c1 | |
parent | 6aa096a67470f92c791353d4cf235cad270df1ed (diff) | |
parent | 8cc3a64fa6cb90817b4bbe5aaeca87fa73ea9103 (diff) | |
download | jinja2-e01e0a21f9157c5b09ea4131d94393fe347a2c82.tar.gz |
Merge pull request #1509 from kianmeng/fix-typos
Fix typos
-rw-r--r-- | CHANGES.rst | 2 | ||||
-rw-r--r-- | src/jinja2/nodes.py | 2 | ||||
-rw-r--r-- | tests/test_inheritance.py | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/CHANGES.rst b/CHANGES.rst index 191d900..a000888 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -423,7 +423,7 @@ Released 2017-01-08 possible. For more information and a discussion see :issue:`641` - Resolved an issue where ``block scoped`` would not take advantage of the new scoping rules. In some more exotic cases a variable - overriden in a local scope would not make it into a block. + overridden in a local scope would not make it into a block. - Change the code generation of the ``with`` statement to be in line with the new scoping rules. This resolves some unlikely bugs in edge cases. This also introduces a new internal ``With`` node that can be diff --git a/src/jinja2/nodes.py b/src/jinja2/nodes.py index 8feb269..b2f88d9 100644 --- a/src/jinja2/nodes.py +++ b/src/jinja2/nodes.py @@ -955,7 +955,7 @@ class Div(BinExpr): class FloorDiv(BinExpr): - """Divides the left by the right node and truncates conver the + """Divides the left by the right node and converts the result into an integer by truncating. """ diff --git a/tests/test_inheritance.py b/tests/test_inheritance.py index 5221839..0c20d4d 100644 --- a/tests/test_inheritance.py +++ b/tests/test_inheritance.py @@ -37,7 +37,7 @@ WORKINGTEMPLATE = """\ {% block block1 %} {% if false %} {% block block2 %} - this should workd + this should work {% endblock %} {% endif %} {% endblock %} @@ -49,7 +49,7 @@ DOUBLEEXTENDS = """\ {% block block1 %} {% if false %} {% block block2 %} - this should workd + this should work {% endblock %} {% endif %} {% endblock %} |