diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2018-08-02 20:03:19 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-02 20:03:19 -0700 |
commit | 66ff9d270c0ff026c13667a4ca7e51ec7494fe62 (patch) | |
tree | 3c19a6323e44e6ebd3ce884de3fe6eb033f6cf8b /Doc/tutorial | |
parent | 50d78677899d315c17dc9a14d2f94a013046c71a (diff) | |
download | cpython-git-66ff9d270c0ff026c13667a4ca7e51ec7494fe62.tar.gz |
Update list.remove(x) documentation (GH-8636)
Rephrase it to "It raises a `ValueError`"
(cherry picked from commit bcd1d971b66f529cbd450aca438275b868031605)
Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
Diffstat (limited to 'Doc/tutorial')
-rw-r--r-- | Doc/tutorial/datastructures.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/tutorial/datastructures.rst b/Doc/tutorial/datastructures.rst index 7855ef2d28..95dc0f98ba 100644 --- a/Doc/tutorial/datastructures.rst +++ b/Doc/tutorial/datastructures.rst @@ -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]) |