]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix typos and improve grammar in threading.Barrier docstrings (GH-12210)
authorCarl Bordum Hansen <carl@bordum.dk>
Sat, 9 Mar 2019 17:38:05 +0000 (18:38 +0100)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 9 Mar 2019 17:38:05 +0000 (09:38 -0800)
Lib/threading.py

index 000981f6d9633f95d28189abe965cccbc62b31fc..0ebbd6776ef40feb51e0648b79e073de6524a333 100644 (file)
@@ -568,8 +568,8 @@ class Barrier:
     """Implements a Barrier.
 
     Useful for synchronizing a fixed number of threads at known synchronization
-    points.  Threads block on 'wait()' and are simultaneously once they have all
-    made that call.
+    points.  Threads block on 'wait()' and are simultaneously awoken once they
+    have all made that call.
 
     """
 
@@ -578,7 +578,7 @@ class Barrier:
 
         'action' is a callable which, when supplied, will be called by one of
         the threads after they have all entered the barrier and just prior to
-        releasing them all. If a 'timeout' is provided, it is uses as the
+        releasing them all. If a 'timeout' is provided, it is used as the
         default for all subsequent 'wait()' calls.
 
         """