Skip to content

Commit 9741173

Browse files
Fix map example output
1 parent 9984a6e commit 9741173

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/filters/map.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ The arrow function also receives the key as a second argument:
2727
"Alice": "Dupond",
2828
} %}
2929
30-
{{ people|map((value, key) => "#{value} #{key}")|join(', ') }}
30+
{{ people|map((value, key) => "#{key} #{value}")|join(', ') }}
3131
{# outputs Bob Smith, Alice Dupond #}
3232
3333
Note that the arrow function has access to the current context.

0 commit comments

Comments
 (0)