Commit bcd1d971 authored by Lysandros Nikolaou's avatar Lysandros Nikolaou Committed by Mariatta

Update list.remove(x) documentation (GH-8636)

Rephrase it to "It raises a `ValueError`"
parent 46ebe61c
......@@ -40,8 +40,8 @@ objects:
.. method:: list.remove(x)
:noindex:
Remove the first item from the list whose value is equal to *x*. It is an error if
there is no such item.
Remove the first item from the list whose value is equal to *x*. It raises a
``ValueError`` if there is no such item.
.. method:: list.pop([i])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment