diff --git a/source/core/index-wildcard.txt b/source/core/index-wildcard.txt index 6984b31c9ad..e6214f82329 100644 --- a/source/core/index-wildcard.txt +++ b/source/core/index-wildcard.txt @@ -439,7 +439,7 @@ Consider the following wildcard index on the ``employees`` collection: .. code-block:: javascript - db.products.createIndex( { "$**" : 1 } ) + db.employees.createIndex( { "$**" : 1 } ) The following operation queries for a single field ``lastName`` and projects out all other fields from the @@ -447,7 +447,7 @@ resulting document: .. code-block:: javascript - db.products.find( + db.employees.find( { "lastName" : "Doe" }, { "_id" : 0, "lastName" : 1 } ) diff --git a/source/core/multikey-index-bounds.txt b/source/core/multikey-index-bounds.txt index 47de5bbfd0f..4b30e6588d9 100644 --- a/source/core/multikey-index-bounds.txt +++ b/source/core/multikey-index-bounds.txt @@ -349,10 +349,10 @@ field ``ratings`` to require that the array contains at least one Taking the predicates separately: -- the bounds for the ``score: { $lte: 5 }`` predicate is ``[ -Infinity, 5 - ]``; +- the bounds for the ``score: { $lte: 5 }`` predicate are ``[ [ -Infinity, 5 + ] ]``; -- the bounds for the ``by: "anon"`` predicate is ``[ "anon", "anon" ]``. +- the bounds for the ``by: "anon"`` predicate are ``[ [ "anon", "anon" ] ]``. MongoDB can compound the two bounds to use the combined bounds of: