diff options
author | Zackery Spytz <zspytz@gmail.com> | 2018-03-21 06:02:37 (GMT) |
---|---|---|
committer | Xiang Zhang <angwerzx@126.com> | 2018-03-21 06:02:37 (GMT) |
commit | 9308dea3e1fd565d50a76a667e4e8ef0568b7053 (patch) | |
tree | ee0cd0447224366cda202e886336f98572ee8f9b | |
parent | 8f6eccdc64cab735c47620fea948e64b19f83684 (diff) | |
download | cpython-9308dea3e1fd565d50a76a667e4e8ef0568b7053.zip cpython-9308dea3e1fd565d50a76a667e4e8ef0568b7053.tar.gz cpython-9308dea3e1fd565d50a76a667e4e8ef0568b7053.tar.bz2 |
Fix typos in mmap() error messages (GH-6173)
-rw-r--r-- | Modules/mmapmodule.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/mmapmodule.c b/Modules/mmapmodule.c index 95d42d6..9afb79f 100644 --- a/Modules/mmapmodule.c +++ b/Modules/mmapmodule.c @@ -1067,7 +1067,7 @@ new_mmap_object(PyTypeObject *type, PyObject *args, PyObject *kwdict) 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) { @@ -1253,7 +1253,7 @@ new_mmap_object(PyTypeObject *type, PyObject *args, PyObject *kwdict) 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) { |