Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7abf343

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

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
@@ -1095,7 +1095,7 @@ new_mmap_object(PyTypeObject *type, PyObject *args, PyObject *kwdict)
10951095
return NULL;
10961096
if (map_size < 0) {
10971097
PyErr_SetString(PyExc_OverflowError,
1098-
"memory mapped length must be postiive");
1098+
"memory mapped length must be positive");
10991099
return NULL;
11001100
}
11011101
if (offset < 0) {
@@ -1281,7 +1281,7 @@ new_mmap_object(PyTypeObject *type, PyObject *args, PyObject *kwdict)
12811281

12821282
if (map_size < 0) {
12831283
PyErr_SetString(PyExc_OverflowError,
1284-
"memory mapped length must be postiive");
1284+
"memory mapped length must be positive");
12851285
return NULL;
12861286
}
12871287
if (offset < 0) {

0 commit comments

Comments
 (0)