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.