Skip to content

Commit 9fac721

Browse files
DOCSP-34433 Add array brackets to dropIndex example (#6245) (#6264)
* DOCSP-34433 add array * DOCSP-34433 fix spacing
1 parent 9ef94bf commit 9fac721

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/core/indexes/drop-index.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ method and specify an array of index names:
7777

7878
.. code-block:: javascript
7979

80-
db.<collection>.dropIndexes("<index1>", "<index2>", "<index3>")
80+
db.<collection>.dropIndexes( [ "<index1>", "<index2>", "<index3>" ] )
8181

8282
Drop All Indexes Except the ``_id`` Index
8383
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)