Skip to content

Commit cbeebd0

Browse files
Small doc fix (#2021)
Co-authored-by: Steven Silvester <steve.silvester@mongodb.com>
1 parent 0e8d704 commit cbeebd0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pymongo/asynchronous/cursor.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1299,7 +1299,7 @@ async def to_list(self, length: Optional[int] = None) -> list[_DocumentType]:
12991299
13001300
>>> await cursor.to_list()
13011301
1302-
Or, so read at most n items from the cursor::
1302+
Or, to read at most n items from the cursor::
13031303
13041304
>>> await cursor.to_list(n)
13051305

pymongo/synchronous/cursor.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1297,7 +1297,7 @@ def to_list(self, length: Optional[int] = None) -> list[_DocumentType]:
12971297
12981298
>>> cursor.to_list()
12991299
1300-
Or, so read at most n items from the cursor::
1300+
Or, to read at most n items from the cursor::
13011301
13021302
>>> cursor.to_list(n)
13031303

0 commit comments

Comments
 (0)