minor #3629 Fix map example output (alexander-schranz)

This PR was merged into the 2.x branch.

Discussion
----------

Fix map example output

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

Commits
-------

97411730 Fix map example output
This commit is contained in:
Fabien Potencier
2022-01-14 12:58:22 +01:00
+1 -1
View File
@@ -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.