Skip to content

Commit b7478bc

Browse files
author
Ed Costello
committed
formatting cleanup of both command and method
1 parent b3189d6 commit b7478bc

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

source/reference/command/renameCollection.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ renameCollection
2929

3030
Specifies the new namespace of the collection.
3131

32-
:param boolean dropTarget: If ``true``, :program:`mongod` will drop the `target` of :dbcommand:`renameCollection` prior to renaming the collection.
32+
:param boolean,optional dropTarget: If ``true``, :program:`mongod` will drop the `target` of :dbcommand:`renameCollection` prior to renaming the collection.
3333

3434
:exception 10026:
3535

source/reference/method/db.collection.renameCollection.txt

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,11 @@ db.collection.renameCollection()
44

55
.. default-domain:: mongodb
66

7-
.. method:: db.collection.renameCollection( target [,dropTarget: true])
7+
.. method:: db.collection.renameCollection()
88

9-
:param string name: Specifies the new name of the
10-
collection. Enclose the string in quotes.
9+
:param string target: Specifies the new name of the collection. Enclose the string in quotes.
1110

12-
:param boolean dropTarget: If ``true``, :program:`mongod` will drop the `target` of :dbcommand:`renameCollection` prior to renaming the collection.
11+
:param boolean,optional dropTarget: If ``true``, :program:`mongod` will drop the `target` of :dbcommand:`renameCollection` prior to renaming the collection.
1312

1413
Call the :method:`db.collection.renameCollection()` method on a collection
1514
object, to rename a collection. Specify the new name of the
@@ -37,11 +36,11 @@ db.collection.renameCollection()
3736

3837
.. warning::
3938

40-
The :method:``db.collection.renameCollection()`` method and
39+
The :method:`db.collection.renameCollection()` method and
4140
:dbcommand:`renameCollection` command will invalidate open
4241
cursors which will interrupt queries that are currently returning data.
4342

4443
.. warning::
4544

46-
You cannot use :method:``db.collection.renameCollection()`` or
47-
:dbcommand:``renameCollection`` with sharded collections.
45+
You cannot use :method:`db.collection.renameCollection()` or
46+
:dbcommand:`renameCollection` with sharded collections.

0 commit comments

Comments
 (0)