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

Skip to content

Commit 6031fdf

Browse files
committed
fix poor spelling
1 parent cf74e75 commit 6031fdf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/_json.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -903,7 +903,7 @@ scan_once_unicode(PyScannerObject *s, PyObject *pystr, Py_ssize_t idx, Py_ssize_
903903
Py_UNICODE *str = PyUnicode_AS_UNICODE(pystr);
904904
Py_ssize_t length = PyUnicode_GET_SIZE(pystr);
905905
if (idx < 0) {
906-
PyErr_SetString(PyExc_ValueError, "idx canont be negative");
906+
PyErr_SetString(PyExc_ValueError, "idx cannot be negative");
907907
return NULL;
908908
}
909909
if (idx >= length) {

0 commit comments

Comments
 (0)