Skip to content

Commit 2ff5bb4

Browse files
authored
Spell out 's.pop() or s.pop(i)' (GH-27398)
1 parent d22c876 commit 2ff5bb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/stdtypes.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1112,7 +1112,7 @@ accepts integers that meet the value restriction ``0 <= x <= 255``).
11121112
| | index given by *i* | |
11131113
| | (same as ``s[i:i] = [x]``) | |
11141114
+------------------------------+--------------------------------+---------------------+
1115-
| ``s.pop([i])`` | retrieves the item at *i* and | \(2) |
1115+
| ``s.pop()`` or ``s.pop(i)`` | retrieves the item at *i* and | \(2) |
11161116
| | also removes it from *s* | |
11171117
+------------------------------+--------------------------------+---------------------+
11181118
| ``s.remove(x)`` | remove the first item from *s* | \(3) |

0 commit comments

Comments
 (0)