From f2f03d7629b8ea76d67918a3993e8d89458bb76c Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Thu, 2 Jan 2025 21:23:49 +0100 Subject: [PATCH] Fix typos in the docs --- doc/api.rst | 4 ++-- doc/templates.rst | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/api.rst b/doc/api.rst index 37560de3cb..bbc4c5c3bd 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 2bf0a0b2c0..3c9a5d134b 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 ---------