Skip to content

Commit e0fe9c7

Browse files
Fix unbalanced square brackets.
1 parent adc4bef commit e0fe9c7

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Doc/library/stdtypes.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1155,13 +1155,13 @@ Sequence types also support the following methods:
11551155

11561156
Return the total number of occurrences of *value* in *sequence*.
11571157

1158-
.. method:: list.index(value[, start[, stop])
1159-
range.index(value[, start[, stop])
1160-
tuple.index(value[, start[, stop])
1158+
.. method:: list.index(value[, start[, stop]])
1159+
range.index(value[, start[, stop]])
1160+
tuple.index(value[, start[, stop]])
11611161
:no-contents-entry:
11621162
:no-index-entry:
11631163
:no-typesetting:
1164-
.. method:: sequence.index(value[, start[, stop])
1164+
.. method:: sequence.index(value[, start[, stop]])
11651165

11661166
Return the index of the first occurrence of *value* in *sequence*.
11671167

Doc/tutorial/datastructures.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ of the methods of list objects:
5858
Remove all items from the list. Similar to ``del a[:]``.
5959

6060

61-
.. method:: list.index(value[, start[, stop])
61+
.. method:: list.index(value[, start[, stop]])
6262
:noindex:
6363

6464
Return zero-based index of the first occurrence of *value* in the list.

Modules/socketmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ listen([n]) -- start listening for incoming connections\n\
151151
recv(buflen[, flags]) -- receive data\n\
152152
recv_into(buffer[, nbytes[, flags]]) -- receive data (into a buffer)\n\
153153
recvfrom(buflen[, flags]) -- receive data and sender\'s address\n\
154-
recvfrom_into(buffer[, nbytes, [, flags])\n\
154+
recvfrom_into(buffer[, nbytes, [, flags]])\n\
155155
-- receive data and sender\'s address (into a buffer)\n\
156156
sendall(data[, flags]) -- send all data\n\
157157
send(data[, flags]) -- send data, may not send all of it\n\

0 commit comments

Comments
 (0)