From 97411730ab13b672ffed88e0aa2d8469d684f308 Mon Sep 17 00:00:00 2001 From: Alexander Schranz Date: Fri, 14 Jan 2022 12:53:45 +0100 Subject: [PATCH] Fix map example output --- doc/filters/map.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/filters/map.rst b/doc/filters/map.rst index 5954da6ccff..55b80d29261 100644 --- a/doc/filters/map.rst +++ b/doc/filters/map.rst @@ -27,7 +27,7 @@ The arrow function also receives the key as a second argument: "Alice": "Dupond", } %} - {{ people|map((value, key) => "#{value} #{key}")|join(', ') }} + {{ people|map((value, key) => "#{key} #{value}")|join(', ') }} {# outputs Bob Smith, Alice Dupond #} Note that the arrow function has access to the current context.