From: Julian Date: Sun, 26 Jan 2014 23:35:05 +0000 (+0100) Subject: Added additional example to min/max doc X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=b7095770e2c2fe74baeaa0524effa6df0fdae72c;p=web%2Fkonrad%2Ftwig.git Added additional example to min/max doc --- diff --git a/doc/functions/max.rst b/doc/functions/max.rst index bdc5b75..6f3cfc5 100644 --- a/doc/functions/max.rst +++ b/doc/functions/max.rst @@ -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" #} + diff --git a/doc/functions/min.rst b/doc/functions/min.rst index b924b03..7b6a65e 100644 --- a/doc/functions/min.rst +++ b/doc/functions/min.rst @@ -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" #} +