Fix typos in the docs

This commit is contained in:
Fabien Potencier
2025-01-02 21:23:49 +01:00
parent 15ef38c661
commit f2f03d7629
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -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']);
+2 -2
View File
@@ -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 #}
@@ -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
---------