summaryrefslogtreecommitdiffstats
path: root/Lib/threading.py
diff options
context:
space:
mode:
authorCarl Bordum Hansen <carl@bordum.dk>2019-03-09 17:38:05 (GMT)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2019-03-09 17:38:05 (GMT)
commit62fa51f1216e788310d3118f4259f1b4b1e529fe (patch)
tree59ae55798aefd7957e0a77a24ef3ccfccf2c04ee /Lib/threading.py
parent1b304f992ddfc1cc40758dd633bc6a2595399189 (diff)
downloadcpython-62fa51f1216e788310d3118f4259f1b4b1e529fe.zip
cpython-62fa51f1216e788310d3118f4259f1b4b1e529fe.tar.gz
cpython-62fa51f1216e788310d3118f4259f1b4b1e529fe.tar.bz2
Fix typos and improve grammar in threading.Barrier docstrings (GH-12210)
Diffstat (limited to 'Lib/threading.py')
-rw-r--r--Lib/threading.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/threading.py b/Lib/threading.py
index 000981f..0ebbd67 100644
--- a/Lib/threading.py
+++ b/Lib/threading.py
@@ -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.
"""