Skip to content

Commit 22c5263

Browse files
srinivasreddyvstinner
authored andcommitted
bpo:34848 : Correct an incorrect docstring for range().index method (GH-9877)
1 parent 45e92fc commit 22c5263

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Objects/rangeobject.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,7 @@ PyDoc_STRVAR(count_doc,
645645
"rangeobject.count(value) -> integer -- return number of occurrences of value");
646646

647647
PyDoc_STRVAR(index_doc,
648-
"rangeobject.index(value, [start, [stop]]) -> integer -- return index of value.\n"
648+
"rangeobject.index(value) -> integer -- return index of value.\n"
649649
"Raise ValueError if the value is not present.");
650650

651651
static PyMethodDef range_methods[] = {

0 commit comments

Comments
 (0)