mirror of https://github.com/python/cpython
bpo:34848 : Correct an incorrect docstring for range().index method (GH-9877)
This commit is contained in:
parent
45e92fc02d
commit
22c526394b
|
@ -645,7 +645,7 @@ PyDoc_STRVAR(count_doc,
|
|||
"rangeobject.count(value) -> integer -- return number of occurrences of value");
|
||||
|
||||
PyDoc_STRVAR(index_doc,
|
||||
"rangeobject.index(value, [start, [stop]]) -> integer -- return index of value.\n"
|
||||
"rangeobject.index(value) -> integer -- return index of value.\n"
|
||||
"Raise ValueError if the value is not present.");
|
||||
|
||||
static PyMethodDef range_methods[] = {
|
||||
|
|
Loading…
Reference in New Issue