]> granicus.if.org Git - python/commitdiff
typos in ctypes Module
authorMark Dickinson <dickinsm@gmail.com>
Wed, 20 May 2009 17:55:31 +0000 (17:55 +0000)
committerMark Dickinson <dickinsm@gmail.com>
Wed, 20 May 2009 17:55:31 +0000 (17:55 +0000)
Modules/_ctypes/_ctypes.c

index 4fa52ae5fb295693db4201b5daacb402c8484b13..930ee95ec29a109c4ad897e00ab54f07b187420f 100644 (file)
@@ -477,7 +477,7 @@ CDataType_from_buffer(PyObject *type, PyObject *args)
 
        if (offset < 0) {
                PyErr_SetString(PyExc_ValueError,
-                               "offset cannit be negative");
+                               "offset cannot be negative");
                return NULL;
        }
        if (dict->size > buffer_len - offset) {
@@ -533,7 +533,7 @@ CDataType_from_buffer_copy(PyObject *type, PyObject *args)
 
        if (offset < 0) {
                PyErr_SetString(PyExc_ValueError,
-                               "offset cannit be negative");
+                               "offset cannot be negative");
                return NULL;
        }