Skip to content

Commit 0518451

Browse files
andresdelfinogpshead
authored andcommitted
Correct minor grammatical mistake in open docs (GH-15865)
1 parent c3d679f commit 0518451

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
@@ -1074,8 +1074,8 @@ are always available. They are listed here in alphabetical order.
10741074
========= ===============================================================
10751075

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

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

0 commit comments

Comments
 (0)