]> granicus.if.org Git - python/commitdiff
Correct minor grammatical mistake in open docs (GH-15865)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 10 Sep 2019 16:24:06 +0000 (09:24 -0700)
committerGitHub <noreply@github.com>
Tue, 10 Sep 2019 16:24:06 +0000 (09:24 -0700)
(cherry picked from commit 05184515f924c3880067aad87940dd466f751585)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
Doc/library/functions.rst

index a4097b0b30eca2a497d71fe9403e784f5317ebbc..9ea7b7b55a97a3d53bcf56106ed196fe2a045c1b 100644 (file)
@@ -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*