]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
concurrent.futures: Fix typo in docstring (#92121)
authorYiannis Hadjicharalambous <hadjicharalambous.yiannis@gmail.com>
Mon, 2 May 2022 15:05:26 +0000 (16:05 +0100)
committerGitHub <noreply@github.com>
Mon, 2 May 2022 15:05:26 +0000 (09:05 -0600)
Lib/concurrent/futures/_base.py

index 706a4f2c09d1fd65f58184ee306fe6f8a99d5ef6..d7e7e41967cc213914b115a8d084fb7a68d88adc 100644 (file)
@@ -379,7 +379,7 @@ class Future(object):
             return self._state == RUNNING
 
     def done(self):
-        """Return True of the future was cancelled or finished executing."""
+        """Return True if the future was cancelled or finished executing."""
         with self._condition:
             return self._state in [CANCELLED, CANCELLED_AND_NOTIFIED, FINISHED]