Update list.remove(x) documentation (GH-8636)
Rephrase it to "It raises a `ValueError`"
(cherry picked from commit bcd1d971b6
)
Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
This commit is contained in:
parent
50d7867789
commit
66ff9d270c
|
@ -40,8 +40,8 @@ objects:
|
||||||
.. method:: list.remove(x)
|
.. method:: list.remove(x)
|
||||||
:noindex:
|
:noindex:
|
||||||
|
|
||||||
Remove the first item from the list whose value is equal to *x*. It is an error if
|
Remove the first item from the list whose value is equal to *x*. It raises a
|
||||||
there is no such item.
|
``ValueError`` if there is no such item.
|
||||||
|
|
||||||
|
|
||||||
.. method:: list.pop([i])
|
.. method:: list.pop([i])
|
||||||
|
|
Loading…
Reference in New Issue