]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix documentation in code.py (GH-17988)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 14 Jan 2020 20:14:56 +0000 (12:14 -0800)
committerGitHub <noreply@github.com>
Tue, 14 Jan 2020 20:14:56 +0000 (12:14 -0800)
(cherry picked from commit b4cdb3f60e71888d7f3d4e0d40cb31e968ea160c)

Co-authored-by: Kyle Pollina <kylepollina@protonmail.com>
Doc/library/code.rst
Lib/code.py

index e2c47bab5a0b9173b6b123afc33787ab75c80aac..6708079f778c1acca53b45116774bab063628abd 100644 (file)
@@ -76,7 +76,7 @@ Interactive Interpreter Objects
 
    Compile and run some source in the interpreter. Arguments are the same as for
    :func:`compile_command`; the default for *filename* is ``'<input>'``, and for
-   *symbol* is ``'single'``.  One several things can happen:
+   *symbol* is ``'single'``.  One of several things can happen:
 
    * The input is incorrect; :func:`compile_command` raised an exception
      (:exc:`SyntaxError` or :exc:`OverflowError`).  A syntax traceback will be
index d8106ae612c4b404c31c36201e6c92072ee5562e..76000f8c8b2c1e1c98f8fb4c831c2ea3e2de268d 100644 (file)
@@ -40,7 +40,7 @@ class InteractiveInterpreter:
 
         Arguments are as for compile_command().
 
-        One several things can happen:
+        One of several things can happen:
 
         1) The input is incorrect; compile_command() raised an
         exception (SyntaxError or OverflowError).  A syntax traceback