Skip to content

Commit

Permalink
Add information for when filter filter was added in 2.x branch
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
YetiCGN authored and fabpot committed May 22, 2019
1 parent 571929f commit a05da6d
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 a05da6d

Please sign in to comment.