Skip to content

Commit 56f530e

Browse files
Fix typos in mmap() error messages (GH-6173)
(cherry picked from commit 9308dea) Co-authored-by: Zackery Spytz <[email protected]>
1 parent 3326c92 commit 56f530e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Modules/mmapmodule.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1067,7 +1067,7 @@ new_mmap_object(PyTypeObject *type, PyObject *args, PyObject *kwdict)
10671067
return NULL;
10681068
if (map_size < 0) {
10691069
PyErr_SetString(PyExc_OverflowError,
1070-
"memory mapped length must be postiive");
1070+
"memory mapped length must be positive");
10711071
return NULL;
10721072
}
10731073
if (offset < 0) {
@@ -1253,7 +1253,7 @@ new_mmap_object(PyTypeObject *type, PyObject *args, PyObject *kwdict)
12531253

12541254
if (map_size < 0) {
12551255
PyErr_SetString(PyExc_OverflowError,
1256-
"memory mapped length must be postiive");
1256+
"memory mapped length must be positive");
12571257
return NULL;
12581258
}
12591259
if (offset < 0) {

0 commit comments

Comments
 (0)