diff --git a/doc/filters/u.rst b/doc/filters/u.rst index f27cb1812..db5d05cb9 100644 --- a/doc/filters/u.rst +++ b/doc/filters/u.rst @@ -31,7 +31,7 @@ Truncating a string: {{ 'Lorem ipsum'|u.truncate(8, '...') }} Lorem... -The ``truncate`` method also accepts a third argument to preserve whole words: +By default, ``truncate`` cuts text at the exact length. Pass ``false`` as the third argument to preserve whole words: .. code-block:: twig