Skip to content
Permalink
Browse files

bpo:34848 : Correct an incorrect docstring for range().index method (G…

  • Loading branch information...
srinivasreddy authored and vstinner committed May 3, 2019
1 parent 45e92fc commit 22c526394b2ef51b985873ddbfbcc32c16411919
Showing with 1 addition and 1 deletion.
  1. +1 −1 Objects/rangeobject.c
@@ -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[] = {

0 comments on commit 22c5263

Please sign in to comment.
You can’t perform that action at this time.