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

Rephrase it to "It raises a `ValueError`"
This commit is contained in:
Lysandros Nikolaou 2018-08-03 04:45:48 +02:00 committed by Mariatta
parent 46ebe61c7f
commit bcd1d971b6
1 changed files with 2 additions and 2 deletions

View File

@ -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])