bug #3047 Update the documentation for newly added features (nexsja)

This PR was submitted for the 2.x branch but it was squashed and merged into the 1.x branch instead (closes #3047).

Discussion
----------

Update the documentation for newly added features

The `map`, `filter` and `reduce` functions were added in Twig 1.41 and 2.10, but the documentation for `map` and `reduce` did not contain the information in which 2.x version these functions were added.
This minor PR fixes this.

Commits
-------

bf518d2c Update the documentation for newly added features
This commit is contained in:
Fabien Potencier
2019-06-03 15:28:34 +02:00
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
=======
.. versionadded:: 1.41
The ``map`` filter was added in Twig 1.41.
The ``map`` filter was added in Twig 1.41 and 2.10.
The ``map`` filter applies an arrow function to the elements of a sequence or a
mapping. The arrow function receives the value of the sequence or mapping:
+1 -1
View File
@@ -2,7 +2,7 @@
=========
.. versionadded:: 1.41
The ``reduce`` filter was added in Twig 1.41.
The ``reduce`` filter was added in Twig 1.41 and 2.10.
The ``reduce`` filter iteratively reduces a sequence or a mapping to a single
value using an arrow function, so as to reduce it to a single value. The arrow