Skip to content

Commit f19f1d8

Browse files
authored
gh-107194: Improved language of list.index in tutorial (gh-138518)
1 parent e9c2a35 commit f19f1d8

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)