Skip to content
Prev Previous commit
Next Next commit
Fix write to writelines.
  • Loading branch information
tirkarthi committed Sep 13, 2019
commit c191de6f8456585d9a75f220f12c6cfbc78c1d78
4 changes: 2 additions & 2 deletions Doc/library/asyncio-stream.rst
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ Stream
If that fails, the data is queued in an internal write buffer until it can be
sent.

It is possible to directly await on the `write()` method::
It is possible to directly await on the `writelines()` method::

await stream.writelines(lines)

Expand Down Expand Up @@ -673,7 +673,7 @@ StreamWriter
If that fails, the data is queued in an internal write buffer until it can be
sent.

Starting with Python 3.8, it is possible to directly await on the `write()`
Starting with Python 3.8, it is possible to directly await on the `writelines()`
method::

await stream.writelines(lines)
Expand Down