8000 Fix typos in mmap() error messages (GH-6173) · python/cpython@9308dea · GitHub
[go: up one dir, main page]

Skip to content

Commit 9308dea

Browse files
ZackerySpytzzhangyangyu
authored andcommitted
Fix typos in mmap() error messages (GH-6173)
1 parent 8f6eccd commit 9308dea

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)
0