Skip to content

Commit 355064f

Browse files
committed
Fixes
1 parent 9137716 commit 355064f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

reference/twig_reference.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -392,17 +392,17 @@ humanize
392392
**type**: ``string``
393393

394394
Transforms the given string into a human readable string (by replacing underscores
395-
by spaces, capitalizing the string, etc.) It's useful e.g. when displaying
396-
property/variable names on an interface created for end users:
395+
with spaces, capitalizing the string, etc.) It's useful e.g. when displaying
396+
the names of PHP properties/variables to end users:
397397

398398
.. code-block:: twig
399399
400-
{{ 'DateOfBirth'|humanize }} {# renders: Date of birth #}
401400
{{ 'dateOfBirth'|humanize }} {# renders: Date of birth #}
401+
{{ 'DateOfBirth'|humanize }} {# renders: Date of birth #}
402402
{{ 'date-of-birth'|humanize }} {# renders: Date-of-birth #}
403403
{{ 'date_of_birth'|humanize }} {# renders: Date of birth #}
404-
{{ 'Date Of Birth'|humanize }} {# renders: Date of birth #}
405404
{{ 'date of birth'|humanize }} {# renders: Date of birth #}
405+
{{ 'Date Of Birth'|humanize }} {# renders: Date of birth #}
406406
407407
.. _reference-twig-filter-trans:
408408

0 commit comments

Comments
 (0)