Correct the docstring for create_indexes.

This commit is contained in:
A. Jesse Jiryu Davis 2017-01-07 16:18:43 -05:00
parent f2aff0fd14
commit 361443ffe8

View File

@ -1361,7 +1361,7 @@ class Collection(common.BaseObject):
... ("world", ASCENDING)], name="hello_world")
>>> index2 = IndexModel([("goodbye", DESCENDING)])
>>> db.test.create_indexes([index1, index2])
["hello_world"]
["hello_world", "goodbye_-1"]
:Parameters:
- `indexes`: A list of :class:`~pymongo.operations.IndexModel`