]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] gh-107194: Improved language of list.index in tutorial (gh-138518) (#138528)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 8 Sep 2025 15:01:01 +0000 (17:01 +0200)
committerGitHub <noreply@github.com>
Mon, 8 Sep 2025 15:01:01 +0000 (18:01 +0300)
Co-authored-by: Ric <11750904+ricsatjr@users.noreply.github.com>
Doc/tutorial/datastructures.rst

index 31941bc112a1358efda64be37477431b16a114f8..db8a066b369a830b5eb848ae9a77bc30d069f497 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