]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-107194: Improved language of list.index in tutorial (gh-138518)
authorRic <11750904+ricsatjr@users.noreply.github.com>
Fri, 5 Sep 2025 07:16:04 +0000 (15:16 +0800)
committerGitHub <noreply@github.com>
Fri, 5 Sep 2025 07:16:04 +0000 (15:16 +0800)
Doc/tutorial/datastructures.rst

index cbe780e075baf5966e4fd02a08f668c140284107..ba47d7ab446bc9e0c9560ff312537d472837b683 100644 (file)
@@ -62,7 +62,7 @@ objects:
 .. method:: list.index(x[, start[, end]])
    :noindex:
 
-   Return zero-based index in the list of the first item whose value is equal to *x*.
+   Return zero-based index of the first occurrence of *x* in the list.
    Raises a :exc:`ValueError` if there is no such item.
 
    The optional arguments *start* and *end* are interpreted as in the slice