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:
Miss Islington (bot) 2018-08-02 20:03:19 -07:00 committed by GitHub
parent 50d7867789
commit 66ff9d270c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

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