summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorVille Skyttä <ville.skytta@iki.fi>2018-04-20 20:08:45 (GMT)
committerTerry Jan Reedy <tjreedy@udel.edu>2018-04-20 20:08:45 (GMT)
commit61f82e0e337f971da57f8f513abfe693edf95aa5 (patch)
treed783b7677df1f57618381c0b7c925a990a115444 /Include
parent0399cf9b5e370516e3d0aed6a63ff74aff5eadb5 (diff)
downloadcpython-61f82e0e337f971da57f8f513abfe693edf95aa5.zip
cpython-61f82e0e337f971da57f8f513abfe693edf95aa5.tar.gz
cpython-61f82e0e337f971da57f8f513abfe693edf95aa5.tar.bz2
Spelling fixes to docs, docstrings, and comments (GH-6374)
Diffstat (limited to 'Include')
-rw-r--r--Include/context.h2
-rw-r--r--Include/internal/hamt.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/Include/context.h b/Include/context.h
index f872dce..8b9f129 100644
--- a/Include/context.h
+++ b/Include/context.h
@@ -65,7 +65,7 @@ PyAPI_FUNC(PyContextToken *) PyContextVar_Set(
/* Reset a variable to its previous value.
- Returns 0 on sucess, -1 on error.
+ Returns 0 on success, -1 on error.
*/
PyAPI_FUNC(int) PyContextVar_Reset(
PyContextVar *var, PyContextToken *token);
diff --git a/Include/internal/hamt.h b/Include/internal/hamt.h
index 52488d0..29ad28b 100644
--- a/Include/internal/hamt.h
+++ b/Include/internal/hamt.h
@@ -80,7 +80,7 @@ PyHamtObject * _PyHamt_Without(PyHamtObject *o, PyObject *key);
/* Find "key" in the "o" collection.
Return:
- - -1: An error ocurred.
+ - -1: An error occurred.
- 0: "key" wasn't found in "o".
- 1: "key" is in "o"; "*val" is set to its value (a borrowed ref).
*/