Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix wording
  • Loading branch information
zhangyangyu committed Mar 13, 2017
commit d0d84429dac1ba848a141971fc0c62f5b0679759
4 changes: 2 additions & 2 deletions Doc/tutorial/datastructures.rst
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ objects:
.. method:: list.remove(x)
:noindex:

Remove the first item from the list whose value equals to *x*. It is an error if
Remove the first item from the list whose value is equal to *x*. It is an error if
there is no such item.


Expand All @@ -63,7 +63,7 @@ objects:
.. method:: list.index(x[, start[, end]])
:noindex:

Return zero-based index in the list of the first item whose value equals to *x*.
Return zero-based index in the list of the first item whose value is equal to *x*.
Raises a :exc:`ValueError` if there is no such item.

The optional arguments *start* and *end* are interpreted as in the slice
Expand Down