diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-09-10 16:24:06 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-10 16:24:06 (GMT) |
commit | 30a8fd7e73802e2df94829b004d45ff18b9abc91 (patch) | |
tree | f9a54454bdf971b13c7b5659d1aed7615fbb5b78 | |
parent | cdce233f61349d029640b2dd2c0403e502050e39 (diff) | |
download | cpython-30a8fd7e73802e2df94829b004d45ff18b9abc91.zip cpython-30a8fd7e73802e2df94829b004d45ff18b9abc91.tar.gz cpython-30a8fd7e73802e2df94829b004d45ff18b9abc91.tar.bz2 |
Correct minor grammatical mistake in open docs (GH-15865)
(cherry picked from commit 05184515f924c3880067aad87940dd466f751585)
Co-authored-by: Andre Delfino <adelfino@gmail.com>
-rw-r--r-- | Doc/library/functions.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst index a4097b0..9ea7b7b 100644 --- a/Doc/library/functions.rst +++ b/Doc/library/functions.rst @@ -1072,8 +1072,8 @@ are always available. They are listed here in alphabetical order. ========= =============================================================== The default mode is ``'r'`` (open for reading text, synonym of ``'rt'``). - Modes ``'w+'`` and ``'w+b'`` opens and truncates the file. Modes ``'r+'`` - and ``'r+b'`` opens the file with no truncation. + Modes ``'w+'`` and ``'w+b'`` open and truncate the file. Modes ``'r+'`` + and ``'r+b'`` open the file with no truncation. As mentioned in the :ref:`io-overview`, Python distinguishes between binary and text I/O. Files opened in binary mode (including ``'b'`` in the *mode* |