Fix typos in mmap() error messages (GH-6173)
(cherry picked from commit 9308dea3e1fd565d50a76a667e4e8ef0568b7053)
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
diff --git a/Modules/mmapmodule.c b/Modules/mmapmodule.c
index 5532c44..2ae52c7 100644
--- a/Modules/mmapmodule.c
+++ b/Modules/mmapmodule.c
@@ -1114,7 +1114,7 @@
return NULL;
if (map_size < 0) {
PyErr_SetString(PyExc_OverflowError,
- "memory mapped length must be postiive");
+ "memory mapped length must be positive");
return NULL;
}
if (offset < 0) {
@@ -1300,7 +1300,7 @@
if (map_size < 0) {
PyErr_SetString(PyExc_OverflowError,
- "memory mapped length must be postiive");
+ "memory mapped length must be positive");
return NULL;
}
if (offset < 0) {