diff --git a/reference/mongo/writes.xml b/reference/mongo/writes.xml index 9c93207ede..bf70c297de 100644 --- a/reference/mongo/writes.xml +++ b/reference/mongo/writes.xml @@ -57,8 +57,8 @@ $blog->update($criteria, array('$set' => array("comments.1" => array("author" => update( - array("comments.author" => "John"), - array('$set' => array('comments.$.author' => "Jim"))); + array('comments.author' => 'John'), + array('$set' => array('comments.$.author' => 'Jim'))); ?> ]]>