From 8cc3a64fa6cb90817b4bbe5aaeca87fa73ea9103 Mon Sep 17 00:00:00 2001 From: "Kian-Meng, Ang" Date: Tue, 12 Oct 2021 22:36:44 +0800 Subject: [PATCH] Fix typos --- CHANGES.rst | 2 +- src/jinja2/nodes.py | 2 +- tests/test_inheritance.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CHANGES.rst b/CHANGES.rst index 0ce916df4..f2c6bc59a 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 226e729c0..2d8adefb8 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 522183980..0c20d4da7 100644 --- a/tests/test_inheritance.py +++ b/tests/test_inheritance.py @@ -37,7 +37,7 @@ {% block block1 %} {% if false %} {% block block2 %} - this should workd + this should work {% endblock %} {% endif %} {% endblock %} @@ -49,7 +49,7 @@ {% block block1 %} {% if false %} {% block block2 %} - this should workd + this should work {% endblock %} {% endif %} {% endblock %}