From: Martin HasoĊˆ Date: Thu, 6 Jun 2013 20:55:44 +0000 (+0200) Subject: Fixed typo in doc for the reverse filter X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=3c6362697c5b8b72e35b17941741d1a9f5f72401;p=web%2Fkonrad%2Ftwig.git Fixed typo in doc for the reverse filter --- diff --git a/doc/filters/reverse.rst b/doc/filters/reverse.rst index ea0326b..752192b 100644 --- a/doc/filters/reverse.rst +++ b/doc/filters/reverse.rst @@ -23,13 +23,13 @@ The ``reverse`` filter reverses a sequence, a mapping, or a string: .. code-block:: jinja - {% for key, value in {1: "a", 2: "b"}|reverse %} + {% for key, value in {1: "a", 2: "b", 3: "c"}|reverse %} {{ key }}: {{ value }} {%- endfor %} {# output: 0: c 1: b 2: a #} - {% for key, value in {1: "a", 2: "b"}|reverse(true) %} + {% for key, value in {1: "a", 2: "b", 3: "c"}|reverse(true) %} {{ key }}: {{ value }} {%- endfor %}