summaryrefslogtreecommitdiffstats
path: root/Doc/c-api
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2019-12-29 00:05:15 (GMT)
committerGitHub <noreply@github.com>2019-12-29 00:05:15 (GMT)
commitdf647f3340d7a40628ba731f80425cb469e72653 (patch)
tree3bc830a3119ad3dbf84743c6609caa4312ea487b /Doc/c-api
parent9ee1b156146cb8114ba6d24811bdec456bbf7b8f (diff)
downloadcpython-df647f3340d7a40628ba731f80425cb469e72653.zip
cpython-df647f3340d7a40628ba731f80425cb469e72653.tar.gz
cpython-df647f3340d7a40628ba731f80425cb469e72653.tar.bz2
[3.8] bpo-39136: Fixed typos (GH-17720)
funtion -> function; configuraton -> configuration; defintitions -> definitions; focusses -> focuses; necesarily -> necessarily; follwing -> following; Excape -> Escape, (cherry picked from commit 6c7bb38ff2799ac218e6df598b2b262f89e2bc1e)
Diffstat (limited to 'Doc/c-api')
-rw-r--r--Doc/c-api/init.rst2
-rw-r--r--Doc/c-api/init_config.rst2
2 files changed, 2 insertions, 2 deletions
diff --git a/Doc/c-api/init.rst b/Doc/c-api/init.rst
index 155edba..81cb4f8 100644
--- a/Doc/c-api/init.rst
+++ b/Doc/c-api/init.rst
@@ -1181,7 +1181,7 @@ It is usually the only Python interpreter in a process. Unlike sub-interpreters
the main interpreter has unique process-global responsibilities like signal
handling. It is also responsible for execution during runtime initialization and
is usually the active interpreter during runtime finalization. The
-:c:func:`PyInterpreterState_Main` funtion returns a pointer to its state.
+:c:func:`PyInterpreterState_Main` function returns a pointer to its state.
You can switch between sub-interpreters using the :c:func:`PyThreadState_Swap`
function. You can create and destroy them using the following functions:
diff --git a/Doc/c-api/init_config.rst b/Doc/c-api/init_config.rst
index 6b16b5b..79a8815 100644
--- a/Doc/c-api/init_config.rst
+++ b/Doc/c-api/init_config.rst
@@ -757,7 +757,7 @@ configuration, and then override some parameters::
PyConfig config;
PyConfig_InitPythonConfig(&config);
- /* Set the program name before reading the configuraton
+ /* Set the program name before reading the configuration
(decode byte string from the locale encoding).
Implicitly preinitialize Python. */