Skip to content

Commit

Permalink
Merge branch '2.x' into 3.x
Browse files Browse the repository at this point in the history
* 2.x:
  Fix map example output
  • Loading branch information
fabpot committed Jan 14, 2022
2 parents 5981815 + bbc3377 commit 8717478
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/filters/map.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,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.
Expand Down

0 comments on commit 8717478

Please sign in to comment.