Skip to content

Commit b1d14e2

Browse files
miss-islingtonricsatjr
authored andcommitted
[3.14] pythongh-107194: Improved language of list.index in tutorial (pythongh-138518) (python#138527)
pythongh-107194: Improved language of list.index in tutorial (pythongh-138518) (cherry picked from commit f19f1d8) Co-authored-by: Ric <[email protected]>
1 parent 2e016c1 commit b1d14e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/tutorial/datastructures.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ objects:
6262
.. method:: list.index(x[, start[, end]])
6363
:noindex:
6464

65-
Return zero-based index in the list of the first item whose value is equal to *x*.
65+
Return zero-based index of the first occurrence of *x* in the list.
6666
Raises a :exc:`ValueError` if there is no such item.
6767

6868
The optional arguments *start* and *end* are interpreted as in the slice

0 commit comments

Comments
 (0)