Skip to content

Commit 30a8fd7

Browse files
Correct minor grammatical mistake in open docs (GH-15865)
(cherry picked from commit 0518451) Co-authored-by: Andre Delfino <[email protected]>
1 parent cdce233 commit 30a8fd7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/functions.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1072,8 +1072,8 @@ are always available. They are listed here in alphabetical order.
10721072
========= ===============================================================
10731073

10741074
The default mode is ``'r'`` (open for reading text, synonym of ``'rt'``).
1075-
Modes ``'w+'`` and ``'w+b'`` opens and truncates the file. Modes ``'r+'``
1076-
and ``'r+b'`` opens the file with no truncation.
1075+
Modes ``'w+'`` and ``'w+b'`` open and truncate the file. Modes ``'r+'``
1076+
and ``'r+b'`` open the file with no truncation.
10771077

10781078
As mentioned in the :ref:`io-overview`, Python distinguishes between binary
10791079
and text I/O. Files opened in binary mode (including ``'b'`` in the *mode*

0 commit comments

Comments
 (0)