From 361443ffe8cf6a960e7c8c29f30fd0dd87fbbffa Mon Sep 17 00:00:00 2001 From: "A. Jesse Jiryu Davis" Date: Sat, 7 Jan 2017 16:18:43 -0500 Subject: [PATCH] Correct the docstring for create_indexes. --- pymongo/collection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pymongo/collection.py b/pymongo/collection.py index d8c193590..9ba860296 100644 --- a/pymongo/collection.py +++ b/pymongo/collection.py @@ -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`