diff --git a/doc/api.rst b/doc/api.rst index 37560de3c..bbc4c5c3b 100644 --- a/doc/api.rst +++ b/doc/api.rst @@ -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']); diff --git a/doc/templates.rst b/doc/templates.rst index 2bf0a0b2c..3c9a5d134 100644 --- a/doc/templates.rst +++ b/doc/templates.rst @@ -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 ---------