diff --git a/src/TwigComponent/doc/index.rst b/src/TwigComponent/doc/index.rst index 36c0595abfe..ce98de2f895 100644 --- a/src/TwigComponent/doc/index.rst +++ b/src/TwigComponent/doc/index.rst @@ -1590,9 +1590,9 @@ Nested Components It's totally possible to include components as part of the contents of another component. When you do this, all components render independently. The only caveat is that you cannot mix the Twig syntax and the :ref:`HTML syntax ` -when using a component: +when using nested components: -.. code-block:: twig +.. code-block:: html+twig {# ❌ this won't work because it mixes different syntaxes #}