From: Fabian Topfstedt Date: Sun, 22 May 2011 15:19:12 +0000 (-0700) Subject: Fixed example of a division with a truncated integer result (it's // instead of /) X-Git-Tag: 2.6~10^2^2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6ae1285fa5b0a5ae6c1a90942adbb6262d4ae51e;p=jinja2.git Fixed example of a division with a truncated integer result (it's // instead of /) --- diff --git a/docs/templates.rst b/docs/templates.rst index b9fbb47..a4a7d30 100644 --- a/docs/templates.rst +++ b/docs/templates.rst @@ -972,7 +972,7 @@ but exists for completeness' sake. The following operators are supported: // Divide two numbers and return the truncated integer result. - ``{{ 20 / 7 }}`` is ``2``. + ``{{ 20 // 7 }}`` is ``2``. % Calculate the remainder of an integer division. ``{{ 11 % 7 }}`` is ``4``.