diff --git a/components/serializer.rst b/components/serializer.rst index db1b1df3467..ae2868c5ceb 100644 --- a/components/serializer.rst +++ b/components/serializer.rst @@ -802,7 +802,7 @@ Be aware that this encoder will consider keys beginning with ``@`` as attributes the key ``#comment`` for encoding XML comments:: $encoder = new XmlEncoder(); - $encoder->encode(array('foo' => array('@bar' => 'value'), 'qux' => array('#comment' => 'A comment)); + $encoder->encode(array('foo' => array('@bar' => 'value'), 'qux' => array('#comment' => 'A comment')), 'xml'); // will return: // //