Skip to content

Commit 9351374

Browse files
committed
FIX: list.index signature mismatch in tutorial
Tutorial docs refer to optional args `start and end` which doesn't match `start[, stop]` in signature above.
1 parent 2424c1d commit 9351374

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎Doc/tutorial/datastructures.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ of the methods of list objects:
6464
Return zero-based index of the first occurrence of *value* in the list.
6565
Raises a :exc:`ValueError` if there is no such item.
6666

67-
The optional arguments *start* and *end* are interpreted as in the slice
67+
The optional arguments *start* and *stop* are interpreted as in the slice
6868
notation and are used to limit the search to a particular subsequence of
6969
the list. The returned index is computed relative to the beginning of the full
7070
sequence rather than the *start* argument.

0 commit comments

Comments
 (0)