From b7095770e2c2fe74baeaa0524effa6df0fdae72c Mon Sep 17 00:00:00 2001 From: Julian Date: Mon, 27 Jan 2014 00:35:05 +0100 Subject: [PATCH] Added additional example to min/max doc --- doc/functions/max.rst | 5 +++-- doc/functions/min.rst | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) 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" #} + -- 1.7.2.5