Skip to content

Commit 7204920

Browse files
committed
DOCSP-15698 identify and correct codeblock indentation
1 parent a194f5b commit 7204920

27 files changed

+193
-193
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
@@ -107,7 +107,7 @@ For example, a collection ``inventory`` has the following index on the
107107

108108
.. code-block:: javascript
109109

110-
db.inventory.createIndex( { type: 1, item: 1 } )
110+
db.inventory.createIndex( { type: 1, item: 1 } )
111111

112112
This index will cover the following operation which queries on the
113113
``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
@@ -100,7 +100,7 @@ The following operation runs the :dbcommand:`collStats` command on the
100100

101101
.. code-block:: javascript
102102

103-
db.runCommand( { collStats : "restaurant", scale: 1024 } )
103+
db.runCommand( { collStats : "restaurant", scale: 1024 } )
104104

105105
The following document provides a representation of the
106106
: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
@@ -161,14 +161,14 @@ database ``db1`` that have been running longer than 3 seconds:
161161

162162
.. code-block:: javascript
163163

164-
db.adminCommand(
165-
{
166-
currentOp: true,
167-
"active" : true,
168-
"secs_running" : { "$gt" : 3 },
169-
"ns" : /^db1\./
170-
}
171-
)
164+
db.adminCommand(
165+
{
166+
currentOp: true,
167+
"active" : true,
168+
"secs_running" : { "$gt" : 3 },
169+
"ns" : /^db1\./
170+
}
171+
)
172172

173173
.. _currentOp-cmd-index-creation:
174174

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
@@ -463,11 +463,11 @@ following form:
463463

464464
.. code-block:: javascript
465465

466-
db.people.findAndModify( {
467-
query: { name: "Tom", state: "active", rating: { $gt: 10 } },
468-
sort: { rating: 1 },
469-
update: { $inc: { score: 1 } }
470-
} );
466+
db.people.findAndModify( {
467+
query: { name: "Tom", state: "active", rating: { $gt: 10 } },
468+
sort: { rating: 1 },
469+
update: { $inc: { score: 1 } }
470+
} );
471471

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

493493
.. code-block:: javascript
494494

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

505505
If the command finds a matching document, the command performs an update.
506506

source/reference/command/usersInfo.txt

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

202202
.. code-block:: javascript
203203

204-
db.runCommand( { usersInfo: 1 } )
204+
db.runCommand( { usersInfo: 1 } )
205205

206206
When viewing all users, you can specify the ``showCredentials``
207207
field but not the ``showPrivileges`` field.

source/reference/command/validate.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ Examples
102102

103103
.. code-block:: javascript
104104

105-
db.runCommand( { validate: "myCollection", full: true } )
105+
db.runCommand( { validate: "myCollection", full: true } )
106106

107107
.. _validate-output:
108108

0 commit comments

Comments
 (0)