summaryrefslogtreecommitdiffstats
path: root/Doc/tutorial
diff options
context:
space:
mode:
authorLysandros Nikolaou <lisandrosnik@gmail.com>2018-08-03 02:45:48 (GMT)
committerMariatta <Mariatta@users.noreply.github.com>2018-08-03 02:45:48 (GMT)
commitbcd1d971b66f529cbd450aca438275b868031605 (patch)
treefbb1edc37f3d9d78786ba0e24b00392240fcc97b /Doc/tutorial
parent46ebe61c7f3511b97268b44d5373a9e9cf0b5cc7 (diff)
downloadcpython-bcd1d971b66f529cbd450aca438275b868031605.zip
cpython-bcd1d971b66f529cbd450aca438275b868031605.tar.gz
cpython-bcd1d971b66f529cbd450aca438275b868031605.tar.bz2
Update list.remove(x) documentation (GH-8636)
Rephrase it to "It raises a `ValueError`"
Diffstat (limited to 'Doc/tutorial')
-rw-r--r--Doc/tutorial/datastructures.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/tutorial/datastructures.rst b/Doc/tutorial/datastructures.rst
index 7855ef2..95dc0f9 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])