]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[docs] fix some asyncio.Barrier.wait docs grammar (GH-93552) (GH-93553)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 6 Jun 2022 18:51:13 +0000 (11:51 -0700)
committerGitHub <noreply@github.com>
Mon, 6 Jun 2022 18:51:13 +0000 (20:51 +0200)
(cherry picked from commit 46fde1feb5fce0f8711ff8c0e1bab317b580d387)

Co-authored-by: Thomas Grainger <tagrain@gmail.com>
Doc/library/asyncio-sync.rst

index b87b1c54bd992bcc1b892b7b3263f3fa983635db..05bdf5488af143c7f31185e11da46a6622ead773 100644 (file)
@@ -411,8 +411,8 @@ Barrier
          ...
          async with barrier as position:
             if position == 0:
-               # Only one task print this
-               print('End of *draining phasis*')
+               # Only one task prints this
+               print('End of *draining phase*')
 
       This method may raise a :class:`BrokenBarrierError` exception if the
       barrier is broken or reset while a task is waiting.