diff --git a/reference/mongo/mongocode/construct.xml b/reference/mongo/mongocode/construct.xml index 472c6569ca..4057ee51d6 100644 --- a/reference/mongo/mongocode/construct.xml +++ b/reference/mongo/mongocode/construct.xml @@ -54,7 +54,7 @@ &reftitle.examples; - <function>MongoCode::__construct</function> example + <mehtodname>MongoCode::__construct</methodname> example - Using <function>MongoCode</function> with $where + Using <classname>MongoCode</classname> with $where This example queries a collection for elements where the 'x' fields is less than $y. Notice that PHP objects can be passed into the JavaScript scope and that the JavaScript function returns a boolean.