Update list.remove(x) documentation (GH-8636)
Rephrase it to "It raises a `ValueError`"
This commit is contained in:
parent
46ebe61c7f
commit
bcd1d971b6
|
@ -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])
|
||||
|
|
Loading…
Reference in New Issue