Skip to content

Commit e1a9448

Browse files
committed
clarify that macros shadow other macros/functions
1 parent 390c5a0 commit e1a9448

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

doc/tags/macro.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ via the ``from`` tag:
7575
.. caution::
7676

7777
As macros imported via ``from`` are called like functions, be careful to
78-
not override existing functions:
78+
not shadow existing functions:
7979

8080
.. code-block:: twig
8181
@@ -113,7 +113,7 @@ Imported macros are not available in the body of ``embed`` tags, you need
113113
to explicitly re-import macros inside the tag.
114114

115115
When calling ``import`` or ``from`` from a ``block`` tag, the imported macros
116-
are only defined in the current block and they override macros defined at the
116+
are only defined in the current block and they shadow macros defined at the
117117
template level with the same names.
118118

119119
Checking if a Macro is defined

0 commit comments

Comments
 (0)