Skip to content

Commit

Permalink
Fix versionadded in doc
Browse files Browse the repository at this point in the history
  • Loading branch information
fancyweb committed Jan 11, 2020
1 parent 54be566 commit 6b25dcc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions doc/functions/block.rst
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
``block``
=========

.. versionadded: 1.28
.. versionadded:: 1.28
Using ``block`` with the ``defined`` test was added in Twig 1.28.

.. versionadded: 1.28
.. versionadded:: 1.28
Support for the template argument was added in Twig 1.28.

When a template uses inheritance and if you want to print a block multiple
Expand Down
4 changes: 2 additions & 2 deletions doc/functions/constant.rst
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
``constant``
============

.. versionadded: 1.12.1
.. versionadded:: 1.12.1
constant now accepts object instances as the second argument.

.. versionadded: 1.28
.. versionadded:: 1.28
Using ``constant`` with the ``defined`` test was added in Twig 1.28.

``constant`` returns the constant value for a given string:
Expand Down
2 changes: 1 addition & 1 deletion doc/tests/constant.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
``constant``
============

.. versionadded: 1.13.1
.. versionadded:: 1.13.1
constant now accepts object instances as the second argument.

``constant`` checks if a variable has the exact same value as a constant. You
Expand Down

0 comments on commit 6b25dcc

Please sign in to comment.