Skip to content

Commit b7c7750

Browse files
authored
Fix wrong exemple for HTML syntaxt
1 parent bdd3107 commit b7c7750

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TwigComponent/doc/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ prefix the attribute with ``:`` or use the normal ``{{ }}`` syntax:
293293
<twig:Alert message="hello!" user="{{ user.id }}" />
294294

295295
// pass object, array, or anything you imagine
296-
<twig:Alert :foo="['col' => ['foo', 'oof']]" />
296+
<twig:Alert :foo="{col: ['foo', 'oof']}" />
297297

298298
Don't forget that you can mix and match props with attributes that you
299299
want to render on the root element:

0 commit comments

Comments
 (0)