Skip to content

Commit

Permalink
minor #3240 Fix versionadded in doc (fancyweb)
Browse files Browse the repository at this point in the history
This PR was merged into the 1.x branch.

Discussion
----------

Fix versionadded in doc

I think those versionadded blocks don't show because they have a typo.

Commits
-------

6b25dcc Fix versionadded in doc
  • Loading branch information
fabpot committed Jan 11, 2020
2 parents ca4d96b + 6b25dcc commit 0ee1c70
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
@@ -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
@@ -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
@@ -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 0ee1c70

Please sign in to comment.