Skip to content

Commit

Permalink
minor #3629 Fix map example output (alexander-schranz)
Browse files Browse the repository at this point in the history
This PR was merged into the 2.x branch.

Discussion
----------

Fix map example output

@fabpot sorry little error in my #3628 pull request 🙈

Commits
-------

9741173 Fix map example output
  • Loading branch information
fabpot committed Jan 14, 2022
2 parents 9984a6e + 9741173 commit bbc3377
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 @@ -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.
Expand Down

0 comments on commit bbc3377

Please sign in to comment.