Skip to content

Commit

Permalink
Fix error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
hajimes committed Jan 23, 2025
1 parent a390cc8 commit c7f3628
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mmh3/mmh3module.c
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ mmh3_hash64(PyObject *self, PyObject *const *args, Py_ssize_t nargs,

if (nargs > 4) {
PyErr_Format(PyExc_TypeError,
"function takes at most 3 arguments (%d given)",
"function takes at most 4 arguments (%d given)",
(int)nargs);
return NULL;
}
Expand Down Expand Up @@ -498,7 +498,7 @@ mmh3_hash128(PyObject *self, PyObject *const *args, Py_ssize_t nargs,

if (nargs > 4) {
PyErr_Format(PyExc_TypeError,
"function takes at most 3 arguments (%d given)",
"function takes at most 4 arguments (%d given)",
(int)nargs);
return NULL;
}
Expand Down

0 comments on commit c7f3628

Please sign in to comment.