Skip to content

Commit bdad966

Browse files
committed
DOCSP-15698 identify and correct codeblock indentation
1 parent 51b6575 commit bdad966

37 files changed

+228
-228
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
@@ -221,7 +221,7 @@ the following operation:
221221

222222
.. code-block:: javascript
223223

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

226226
This index *would permit* the insertion of documents that had unique
227227
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
@@ -129,7 +129,7 @@ The following operation runs the :dbcommand:`collStats` command on the
129129

130130
.. code-block:: javascript
131131

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

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

175175
.. code-block:: javascript
176176

177-
db.adminCommand(
178-
{
179-
currentOp: true,
180-
"active" : true,
181-
"secs_running" : { "$gt" : 3 },
182-
"ns" : /^db1\./
183-
}
184-
)
177+
db.adminCommand(
178+
{
179+
currentOp: true,
180+
"active" : true,
181+
"secs_running" : { "$gt" : 3 },
182+
"ns" : /^db1\./
183+
}
184+
)
185185

186186
.. _currentOp-cmd-index-creation:
187187

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
@@ -556,11 +556,11 @@ following form:
556556

557557
.. code-block:: javascript
558558

559-
db.people.findAndModify( {
560-
query: { name: "Tom", state: "active", rating: { $gt: 10 } },
561-
sort: { rating: 1 },
562-
update: { $inc: { score: 1 } }
563-
} );
559+
db.people.findAndModify( {
560+
query: { name: "Tom", state: "active", rating: { $gt: 10 } },
561+
sort: { rating: 1 },
562+
update: { $inc: { score: 1 } }
563+
} );
564564

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

586586
.. code-block:: javascript
587587

588-
db.runCommand(
589-
{
590-
findAndModify: "people",
591-
query: { name: "Gus", state: "active", rating: 100 },
592-
sort: { rating: 1 },
593-
update: { $inc: { score: 1 } },
594-
upsert: true
595-
}
596-
)
588+
db.runCommand(
589+
{
590+
findAndModify: "people",
591+
query: { name: "Gus", state: "active", rating: 100 },
592+
sort: { rating: 1 },
593+
update: { $inc: { score: 1 } },
594+
upsert: true
595+
}
596+
)
597597

598598
If the command finds a matching document, the command performs an update.
599599

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
@@ -248,7 +248,7 @@ that resembles the following:
248248

249249
.. code-block:: javascript
250250

251-
db.runCommand( { usersInfo: 1 } )
251+
db.runCommand( { usersInfo: 1 } )
252252

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

0 commit comments

Comments
 (0)