From 7d1a79ca67b6d97368ce2a872c7be06dd227a798 Mon Sep 17 00:00:00 2001 From: FrancescaK Date: Mon, 4 Mar 2013 15:02:43 -0500 Subject: [PATCH] confuse Collection with database Inconsistency with example: Original gave an ensureIndex example with a "records" collection. Then used the same name as the "records" collection as the name of the database. A bit confusing. Might be better to keep names consistent if people plan to work through the docs IMHO --- source/release-notes/2.4.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/release-notes/2.4.txt b/source/release-notes/2.4.txt index 75b656cbef8..1e2d8038979 100644 --- a/source/release-notes/2.4.txt +++ b/source/release-notes/2.4.txt @@ -1268,7 +1268,7 @@ following: .. code-block:: javascript - db.records.ensureIndex( { a: "hashed" } ) + db.active.ensureIndex( { a: "hashed" } ) This operation creates a hashed index for the ``records`` collection on the ``a`` field.