summaryrefslogtreecommitdiff
path: root/Objects
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2019-05-03 05:39:17 -0700
committerGitHub <noreply@github.com>2019-05-03 05:39:17 -0700
commit128e2262a8ffc7b94e44455cc1ba2e0f74316461 (patch)
tree60a20468dc00d7bffb34221490817310228af6ce /Objects
parent304ca211c4912f040151e518d9d66fd2d625c5e9 (diff)
downloadcpython-git-128e2262a8ffc7b94e44455cc1ba2e0f74316461.tar.gz
bpo:34848 : Correct an incorrect docstring for range().index method (GH-9877)
(cherry picked from commit 22c526394b2ef51b985873ddbfbcc32c16411919) Co-authored-by: Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి) <thatiparthysreenivas@gmail.com>
Diffstat (limited to 'Objects')
-rw-r--r--Objects/rangeobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/rangeobject.c b/Objects/rangeobject.c
index 037be870e3..157ab81947 100644
--- a/Objects/rangeobject.c
+++ b/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[] = {