Browse code

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.

Jörn Wagner authored on 21/05/2019 10:53:40 • Fabien Potencier committed on 22/05/2019 13:58:42
Showing 1 changed files
... ...
@@ -2,7 +2,7 @@
2 2
 =========
3 3
 
4 4
 .. versionadded:: 1.41
5
-    The ``filter`` filter was added in Twig 1.41.
5
+    The ``filter`` filter was added in Twig 1.41 and 2.10, if you're on 2.x.
6 6
 
7 7
 The ``filter`` filter filters elements of a sequence or a mapping using an arrow
8 8
 function. The arrow function receives the value of the sequence or mapping: