Skip to content

Commit 4e2079d

Browse files
Fix typos and improve grammar in threading.Barrier docstrings (GH-12210)
(cherry picked from commit 62fa51f) Co-authored-by: Carl Bordum Hansen <carl@bordum.dk>
1 parent 572205a commit 4e2079d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Lib/threading.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -568,8 +568,8 @@ class Barrier:
568568
"""Implements a Barrier.
569569
570570
Useful for synchronizing a fixed number of threads at known synchronization
571-
points. Threads block on 'wait()' and are simultaneously once they have all
572-
made that call.
571+
points. Threads block on 'wait()' and are simultaneously awoken once they
572+
have all made that call.
573573
574574
"""
575575

@@ -578,7 +578,7 @@ def __init__(self, parties, action=None, timeout=None):
578578
579579
'action' is a callable which, when supplied, will be called by one of
580580
the threads after they have all entered the barrier and just prior to
581-
releasing them all. If a 'timeout' is provided, it is uses as the
581+
releasing them all. If a 'timeout' is provided, it is used as the
582582
default for all subsequent 'wait()' calls.
583583
584584
"""

0 commit comments

Comments
 (0)