Skip to content

Commit c0b547b

Browse files
committed
Minor grammar tweaks
- Move to commas around nonessential phrase - Expand contraction
1 parent 8731795 commit c0b547b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Doc/library/io.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ I/O Base Classes
535535

536536
This function does not ensure all bytes are written or an exception is
537537
thrown. Callers may implement that behavior by checking the return
538-
value, and if it is less than the length of *b* looping with additional
538+
value and, if it is less than the length of *b*, looping with additional
539539
write calls until all unwritten bytes are written. High-level I/O
540540
objects like :ref:`binary-io` and :ref:`text-io` implement retry behavior.
541541

@@ -667,7 +667,7 @@ Raw File I/O
667667

668668
A raw binary stream representing an OS-level file containing bytes data. It
669669
inherits from :class:`RawIOBase` and implements its low-level access design.
670-
This means :meth:`~RawIOBase.write` doesn't guarantee all bytes are written
670+
This means :meth:`~RawIOBase.write` does not guarantee all bytes are written
671671
and :meth:`~RawIOBase.read` may read less bytes than requested even when more
672672
bytes may be present in the underlying file. To get "write all" and
673673
"read at least" behavior, use :ref:`binary-io`.

0 commit comments

Comments
 (0)