fixed wrong version in the docs

This commit is contained in:
Fabien Potencier
2012-12-30 16:51:54 +01:00
parent 1b1a6e7de0
commit 45850f554f
+3 -3
View File
@@ -722,8 +722,8 @@ tests.
Other Operators
~~~~~~~~~~~~~~~
.. versionadded:: 1.11.2
Support for the extended ternary operator was added in Twig 1.11.2.
.. versionadded:: 1.12.0
Support for the extended ternary operator was added in Twig 1.12.0.
The following operators are very useful but don't fit into any of the other
categories:
@@ -746,7 +746,7 @@ categories:
{{ foo ? 'yes' : 'no' }}
{# as of Twig 1.11.2 #}
{# as of Twig 1.12.0 #}
{{ foo ?: 'no' }} == {{ foo ? foo : 'no' }}
{{ foo ? 'yes' }} == {{ foo ? 'yes' : '' }}