mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-15 20:06:31 +00:00
fix typo 'in' operator
Fixed a small typo in the negative 'in' test operator
This commit is contained in:
+1
-1
@@ -745,7 +745,7 @@ Tests can be negated by using the ``is not`` operator:
|
||||
|
||||
.. code-block:: jinja
|
||||
|
||||
{% if post.status is constant('Post::PUBLISHED') %}
|
||||
{% if post.status is not constant('Post::PUBLISHED') %}
|
||||
|
||||
{# is equivalent to #}
|
||||
{% if not (post.status is constant('Post::PUBLISHED')) %}
|
||||
|
||||
Reference in New Issue
Block a user