summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKian-Meng, Ang <kianmeng@cpan.org>2021-10-12 22:36:44 +0800
committerKian-Meng, Ang <kianmeng@cpan.org>2021-10-12 22:36:44 +0800
commit8cc3a64fa6cb90817b4bbe5aaeca87fa73ea9103 (patch)
treec5ac617a4098f6af40853b7e16152825f6f74717
parentb7d12b6b1597ea5d38de8dac2013749be266edd0 (diff)
downloadjinja2-8cc3a64fa6cb90817b4bbe5aaeca87fa73ea9103.tar.gz
Fix typos
-rw-r--r--CHANGES.rst2
-rw-r--r--src/jinja2/nodes.py2
-rw-r--r--tests/test_inheritance.py4
3 files changed, 4 insertions, 4 deletions
diff --git a/CHANGES.rst b/CHANGES.rst
index 0ce916d..f2c6bc5 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -408,7 +408,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 226e729..2d8adef 100644
--- a/src/jinja2/nodes.py
+++ b/src/jinja2/nodes.py
@@ -956,7 +956,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 %}