Skip to content

Commit

Permalink
minor #4529 Fix typo in the docs (fabpot)
Browse files Browse the repository at this point in the history
This PR was merged into the 3.x branch.

Discussion
----------

Fix typo in the docs

Commits
-------

f2f03d7 Fix typos in the docs
  • Loading branch information
fabpot committed Jan 3, 2025
2 parents 4a871c1 + f2f03d7 commit 7742547
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions doc/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ If a template defines blocks, they can be rendered individually via the
Streaming Templates
-------------------

.. versionadded:: 3.18.0
.. versionadded:: 3.18

To stream a template, call the ``stream()`` method`::
To stream a template, call the ``stream()`` method::

$template->stream(['the' => 'variables', 'go' => 'here']);

Expand Down
4 changes: 2 additions & 2 deletions doc/templates.rst
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ filters.
.. code-block:: twig
{{ -1|abs }} {# returns -1 #}
{{ -1**0 }} {% returns -1 %}
{{ -1**0 }} {# returns -1 #}
{# as it is equivalent to #}
Expand All @@ -206,7 +206,7 @@ filters.
.. code-block:: twig
{{ (-1)|abs }} {# returns 1 as expected #}
{{ (-1)**0 }} {% returns 1 %}
{{ (-1)**0 }} {# returns 1 as expected #}
Functions
---------
Expand Down

0 comments on commit 7742547

Please sign in to comment.