From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Tue, 10 Sep 2019 16:24:06 +0000 (-0700) Subject: Correct minor grammatical mistake in open docs (GH-15865) X-Git-Tag: v3.8.0rc1~213 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=30a8fd7e73802e2df94829b004d45ff18b9abc91;p=python Correct minor grammatical mistake in open docs (GH-15865) (cherry picked from commit 05184515f924c3880067aad87940dd466f751585) Co-authored-by: Andre Delfino --- diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst index a4097b0b30..9ea7b7b55a 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*