Skip to content

Commit 66ff9d2

Browse files
Update list.remove(x) documentation (GH-8636)
Rephrase it to "It raises a `ValueError`" (cherry picked from commit bcd1d97) Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
1 parent 50d7867 commit 66ff9d2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Doc/tutorial/datastructures.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ objects:
4040
.. method:: list.remove(x)
4141
:noindex:
4242

43-
Remove the first item from the list whose value is equal to *x*. It is an error if
44-
there is no such item.
43+
Remove the first item from the list whose value is equal to *x*. It raises a
44+
``ValueError`` if there is no such item.
4545

4646

4747
.. method:: list.pop([i])

0 commit comments

Comments
 (0)