Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit f19f1d8

Browse files
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)

AltStyle によって変換されたページ (->オリジナル) /