Added additional example to min/max doc

This commit is contained in:
Julian
2014-01-27 00:35:05 +01:00
committed by Fabien Potencier
parent 9ed963c99d
commit b7095770e2
2 changed files with 6 additions and 4 deletions
+3 -2
View File
@@ -15,5 +15,6 @@ When called with a mapping, max ignores keys and only compares values:
.. code-block:: jinja
{{ max({2: "two", 1: "one", 3: "three", 5: "five", 4: "for"}) }}
{# return "two" #}
{{ max({2: "e", 1: "a", 3: "b", 5: "d", 4: "c"}) }}
{# returns "e" #}
+3 -2
View File
@@ -15,5 +15,6 @@ When called with a mapping, min ignores keys and only compares values:
.. code-block:: jinja
{{ min({2: "two", 1: "one", 3: "three", 5: "five", 4: "for"}) }}
{# return "five" #}
{{ min({2: "e", 3: "a", 1: "b", 5: "d", 4: "c"}) }}
{# returns "a" #}