Skip to content

Commit 3db4d26

Browse files
authored
DOCSP 23684 making sparse index example more consistent (#1442)
* DOCSP-23684 making index example more consistent * DOCSP-23684 making sparse index example consistent * DOCSP-23684 making sparse index example consistent
1 parent 3650549 commit 3db4d26

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

source/core/index-sparse.txt

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -234,10 +234,9 @@ index permits the following :doc:`insert operations
234234
.. code-block:: javascript
235235

236236
db.scores.insertMany( [
237-
{ "userid": "AAAAAAA", "score": 43 },
238-
{ "userid": "BBBBBBB", "score": 34 },
239-
{ "userid": "CCCCCCC" },
240-
{ "userid": "DDDDDDD" }
237+
{ "userid": "newbie", "score": 43 },
238+
{ "userid": "abby", "score": 34 },
239+
{ "userid": "nina" }
241240
] )
242241

243242
However, the index *would not permit* the addition of the following
@@ -247,8 +246,8 @@ and ``90``:
247246
.. code-block:: javascript
248247

249248
db.scores.insertMany( [
250-
{ "userid": "AAAAAAA", "score": 82 },
251-
{ "userid": "BBBBBBB", "score": 90 }
249+
{ "userid": "newbie", "score": 82 },
250+
{ "userid": "abby", "score": 90 }
252251
] )
253252

254253
.. _sparse-and-non-sparse_example:

0 commit comments

Comments
 (0)