Skip to content

Commit 9a19ff9

Browse files
Use SemBr
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
1 parent 26d1e81 commit 9a19ff9

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

Doc/library/io.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -741,10 +741,9 @@ than raw I/O does.
741741

742742
.. method:: peek(size=1, /)
743743

744-
Return bytes from the current position onwards but without advancing the
745-
position. If the size argument is less than one or larger than the number
746-
of available bytes, a copy of the buffer from the current position until
747-
the end is returned.
744+
Return bytes from the current position onwards without advancing the position.
745+
If the size argument is less than one or larger than the number of available bytes,
746+
a copy of the buffer from the current position until the end is returned.
748747
Return an empty bytes object at EOF.
749748

750749
.. versionadded:: 3.15

0 commit comments

Comments
 (0)