Spelling fixes to docs, docstrings, and comments (GH-6374)
(cherry picked from commit 61f82e0e337f971da57f8f513abfe693edf95aa5)
Co-authored-by: Ville Skyttä <ville.skytta@iki.fi>
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 @@
/* 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 @@
/* 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).
*/