minor #4645 Update templates.rst: Removing duplication (ThomasLandauer)

This PR was merged into the 3.x branch.

Discussion
----------

Update templates.rst: Removing duplication

Page: https://twig.symfony.com/doc/3.x/templates.html#dot_operator

Reason: This is repeated a few lines further down.

Commits
-------

a26f43a6a6 Update templates.rst: Removing duplication
This commit is contained in:
Fabien Potencier
2025-06-06 08:01:35 +02:00
-3
View File
@@ -871,9 +871,6 @@ The following operators don't fit into any of the other categories:
{{ user.name }}
Twig supports a specific syntax via the ``[]`` operator for accessing items
on sequences and mappings, like in ``user['name']``:
After the ``.``, you can use any expression by wrapping it with parenthesis
``()``.