Skip to content

Commit 822c7ee

Browse files
committed
Fix typo in ensure_index docs PYTHON-438
1 parent 31beb2b commit 822c7ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pymongo/collection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -823,7 +823,7 @@ def ensure_index(self, key_or_list, cache_for=300, **kwargs):
823823
unconditionally, :meth:`ensure_index` takes advantage of some
824824
caching within the driver such that it only attempts to create
825825
indexes that might not already exist. When an index is created
826-
(or ensured) by PyMongo it is "remembered" for `ttl`
826+
(or ensured) by PyMongo it is "remembered" for `cache_for`
827827
seconds. Repeated calls to :meth:`ensure_index` within that
828828
time limit will be lightweight - they will not attempt to
829829
actually create the index.

0 commit comments

Comments
 (0)