diff options
author | Andre Delfino <adelfino@gmail.com> | 2019-09-10 14:48:05 (GMT) |
---|---|---|
committer | Gregory P. Smith <greg@krypto.org> | 2019-09-10 14:48:05 (GMT) |
commit | 05184515f924c3880067aad87940dd466f751585 (patch) | |
tree | a06d2a172f6e5456b8bc4cdd992f16d317dfe3b8 | |
parent | c3d679fd398f42a2e489fbe3dab17fac1fb2439c (diff) | |
download | cpython-05184515f924c3880067aad87940dd466f751585.zip cpython-05184515f924c3880067aad87940dd466f751585.tar.gz cpython-05184515f924c3880067aad87940dd466f751585.tar.bz2 |
Correct minor grammatical mistake in open docs (GH-15865)
-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 98a55c6..2e385a2 100644 --- a/Doc/library/functions.rst +++ b/Doc/library/functions.rst @@ -1074,8 +1074,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* |