Skip to content

Commit

Permalink
minor #3027 Add information for when filter filter was added in 2.x…
Browse files Browse the repository at this point in the history
… branch (YetiCGN)

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

Discussion
----------

Add information for when `filter` filter was added in 2.x branch

The current "versionadded" info can be confusing to developers, if they assume 2.9 > 1.41 and don't know that 1.x and 2.x branches are still developed simultaneously.

Commits
-------

a05da6d Add information for when `filter` filter was added in 2.x branch
  • Loading branch information
fabpot committed May 22, 2019
2 parents 571929f + a05da6d commit 6b91b3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/filters/filter.rst
Expand Up @@ -2,7 +2,7 @@
=========

.. versionadded:: 1.41
The ``filter`` filter was added in Twig 1.41.
The ``filter`` filter was added in Twig 1.41 and 2.10, if you're on 2.x.

The ``filter`` filter filters elements of a sequence or a mapping using an arrow
function. The arrow function receives the value of the sequence or mapping:
Expand Down

0 comments on commit 6b91b3b

Please sign in to comment.