From cbeebd01901467a204687a70ca498dad70539502 Mon Sep 17 00:00:00 2001 From: theRealProHacker <77074862+theRealProHacker@users.noreply.github.com> Date: Mon, 2 Dec 2024 17:54:56 +0100 Subject: [PATCH] Small doc fix (#2021) Co-authored-by: Steven Silvester --- pymongo/asynchronous/cursor.py | 2 +- pymongo/synchronous/cursor.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pymongo/asynchronous/cursor.py b/pymongo/asynchronous/cursor.py index 7d7ae4a5d..8193e5328 100644 --- a/pymongo/asynchronous/cursor.py +++ b/pymongo/asynchronous/cursor.py @@ -1299,7 +1299,7 @@ class AsyncCursor(Generic[_DocumentType]): >>> await cursor.to_list() - Or, so read at most n items from the cursor:: + Or, to read at most n items from the cursor:: >>> await cursor.to_list(n) diff --git a/pymongo/synchronous/cursor.py b/pymongo/synchronous/cursor.py index 9a7637704..b35098a32 100644 --- a/pymongo/synchronous/cursor.py +++ b/pymongo/synchronous/cursor.py @@ -1297,7 +1297,7 @@ class Cursor(Generic[_DocumentType]): >>> cursor.to_list() - Or, so read at most n items from the cursor:: + Or, to read at most n items from the cursor:: >>> cursor.to_list(n)