Skip to content

Commit 7392ac7

Browse files
committed
DOCSP-15698 identify and correct codeblock indentation
1 parent 67de602 commit 7392ac7

33 files changed

+219
-219
lines changed

source/core/index-sparse.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ The collection has a sparse index on the field ``score``:
125125

126126
.. code-block:: javascript
127127

128-
db.scores.createIndex( { score: 1 } , { sparse: true } )
128+
db.scores.createIndex( { score: 1 } , { sparse: true } )
129129

130130
Then, the following query on the ``scores`` collection uses the sparse
131131
index to return the documents that have the ``score`` field less than
@@ -160,7 +160,7 @@ The collection has a sparse index on the field ``score``:
160160

161161
.. code-block:: javascript
162162

163-
db.scores.createIndex( { score: 1 } , { sparse: true } )
163+
db.scores.createIndex( { score: 1 } , { sparse: true } )
164164

165165
Because the document for the userid ``"newbie"`` does not contain the
166166
``score`` field, the sparse index does not contain an entry for that
@@ -217,7 +217,7 @@ the following operation:
217217

218218
.. code-block:: javascript
219219

220-
db.scores.createIndex( { score: 1 } , { sparse: true, unique: true } )
220+
db.scores.createIndex( { score: 1 } , { sparse: true, unique: true } )
221221

222222
This index *would permit* the insertion of documents that had unique
223223
values for the ``score`` field *or* did not include a ``score`` field.

source/core/query-optimization.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ For example, a collection ``inventory`` has the following index on the
110110

111111
.. code-block:: javascript
112112

113-
db.inventory.createIndex( { type: 1, item: 1 } )
113+
db.inventory.createIndex( { type: 1, item: 1 } )
114114

115115
This index will cover the following operation which queries on the
116116
``type`` and ``item`` fields and returns only the ``item`` field:

source/includes/example-push-each.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ equals ``joe``:
44

55
.. code-block:: javascript
66
7-
db.students.update(
8-
{ name: "joe" },
9-
{ $push: { scores: { $each: [ 90, 92, 85 ] } } }
10-
)
7+
db.students.update(
8+
{ name: "joe" },
9+
{ $push: { scores: { $each: [ 90, 92, 85 ] } } }
10+
)

source/includes/output-upgrade-check.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Warning Output
4747

4848
.. code-block:: none
4949
50-
Warning: upgradeCheck only supports V1 indexes. Skipping index: <indexSpec>
50+
Warning: upgradeCheck only supports V1 indexes. Skipping index: <indexSpec>
5151
5252
To resolve, remove the invalid index and recreate the index omitting
5353
the version specification, or reindex the collection. Reindex operation

source/reference/command/collStats.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ The following operation runs the :dbcommand:`collStats` command on the
123123

124124
.. code-block:: javascript
125125

126-
db.runCommand( { collStats : "restaurants", scale: 1024 } )
126+
db.runCommand( { collStats : "restaurants", scale: 1024 } )
127127

128128
The following document provides a representation of the
129129
:dbcommand:`collStats` output. Depending on the configuration of your

source/reference/command/currentOp.txt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -165,14 +165,14 @@ database ``db1`` that have been running longer than 3 seconds:
165165

166166
.. code-block:: javascript
167167

168-
db.adminCommand(
169-
{
170-
currentOp: true,
171-
"active" : true,
172-
"secs_running" : { "$gt" : 3 },
173-
"ns" : /^db1\./
174-
}
175-
)
168+
db.adminCommand(
169+
{
170+
currentOp: true,
171+
"active" : true,
172+
"secs_running" : { "$gt" : 3 },
173+
"ns" : /^db1\./
174+
}
175+
)
176176

177177
.. _currentOp-cmd-index-creation:
178178

source/reference/command/dataSize.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ and the upper bound of the key to be examined being ``{field: 100}``.
102102

103103
.. code-block:: javascript
104104

105-
db.runCommand({ dataSize: "database.collection", keyPattern: { field: 1 }, min: { field: 10 }, max: { field: 100 } })
105+
db.runCommand({ dataSize: "database.collection", keyPattern: { field: 1 }, min: { field: 10 }, max: { field: 100 } })
106106

107107
This will return a document that contains the size of all matching
108108
documents. Replace ``database.collection`` value with database

source/reference/command/findAndModify.txt

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -460,11 +460,11 @@ following form:
460460

461461
.. code-block:: javascript
462462

463-
db.people.findAndModify( {
464-
query: { name: "Tom", state: "active", rating: { $gt: 10 } },
465-
sort: { rating: 1 },
466-
update: { $inc: { score: 1 } }
467-
} );
463+
db.people.findAndModify( {
464+
query: { name: "Tom", state: "active", rating: { $gt: 10 } },
465+
sort: { rating: 1 },
466+
update: { $inc: { score: 1 } }
467+
} );
468468

469469
However, the :method:`~db.collection.findAndModify()` shell helper
470470
method returns only the unmodified document, or if ``new`` is
@@ -489,15 +489,15 @@ document or, if no matching document exists, create a new document:
489489

490490
.. code-block:: javascript
491491

492-
db.runCommand(
493-
{
494-
findAndModify: "people",
495-
query: { name: "Gus", state: "active", rating: 100 },
496-
sort: { rating: 1 },
497-
update: { $inc: { score: 1 } },
498-
upsert: true
499-
}
500-
)
492+
db.runCommand(
493+
{
494+
findAndModify: "people",
495+
query: { name: "Gus", state: "active", rating: 100 },
496+
sort: { rating: 1 },
497+
update: { $inc: { score: 1 } },
498+
upsert: true
499+
}
500+
)
501501

502502
If the command finds a matching document, the command performs an update.
503503

source/reference/command/removeShard.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ against the ``admin`` database:
2525

2626
.. code-block:: javascript
2727

28-
db.adminCommand( { removeShard : <shardToRemove> } )
28+
db.adminCommand( { removeShard : <shardToRemove> } )
2929

3030
Behavior
3131
--------

source/reference/command/usersInfo.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ that resembles the following:
236236

237237
.. code-block:: javascript
238238

239-
db.runCommand( { usersInfo: 1 } )
239+
db.runCommand( { usersInfo: 1 } )
240240

241241
When viewing all users, you can specify the ``showCredentials`` option
242242
but not the ``showPrivileges`` or the

0 commit comments

Comments
 (0)