]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Spell out 's.pop() or s.pop(i)' (GH-27398)
authorDennis Sweeney <36520290+sweeneyde@users.noreply.github.com>
Wed, 28 Jul 2021 13:31:44 +0000 (09:31 -0400)
committerGitHub <noreply@github.com>
Wed, 28 Jul 2021 13:31:44 +0000 (15:31 +0200)
Doc/library/stdtypes.rst

index 87a343dbe422c923a097c5310dda2e9c4bd0d6c0..d6eff144cce541805f35e91551fdb9eef133ffde 100644 (file)
@@ -1112,7 +1112,7 @@ accepts integers that meet the value restriction ``0 <= x <= 255``).
 |                              | index given by *i*             |                     |
 |                              | (same as ``s[i:i] = [x]``)     |                     |
 +------------------------------+--------------------------------+---------------------+
-| ``s.pop([i])``               | retrieves the item at *i* and  | \(2)                |
+| ``s.pop()`` or ``s.pop(i)``  | retrieves the item at *i* and  | \(2)                |
 |                              | also removes it from *s*       |                     |
 +------------------------------+--------------------------------+---------------------+
 | ``s.remove(x)``              | remove the first item from *s* | \(3)                |