mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-07 07:57:01 +00:00
Fix typos in the docs
This commit is contained in:
+2
-2
@@ -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
@@ -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
|
||||
---------
|
||||
|
||||
Reference in New Issue
Block a user