Skip to content

Commit 5eef361

Browse files
committed
address review: reword note (4)
1 parent 03732f9 commit 5eef361

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

Doc/library/stdtypes.rst

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1093,12 +1093,14 @@ Notes:
10931093
still ``0``.
10941094

10951095
(4)
1096-
The slice of *s* from *i* to *j* is defined as the sequence of items with index
1097-
*k* such that ``i <= k < j``. If *i* or *j* is greater than ``len(s)``, use
1098-
``len(s)``. If *i* or *j* is less than ``-len(s)``, use ``0``.
1099-
If *i* is omitted or ``None``, use ``0``. If *j* is omitted or
1100-
``None``, use ``len(s)``. If *i* is greater than or equal to *j*, the slice is
1101-
empty.
1096+
The slice of *s* from *i* to *j* is defined as the sequence of items with
1097+
index *k* such that ``i <= k < j``.
1098+
1099+
* If *i* is omitted or ``None``, use ``0``.
1100+
* If *j* is omitted or ``None``, use ``len(s)``.
1101+
* If *i* or *j* is less than ``-len(s)``, use ``0``.
1102+
* If *i* or *j* is greater than ``len(s)``, use ``len(s)``.
1103+
* If *i* is greater than or equal to *j*, the slice is empty.
11021104

11031105
(5)
11041106
The slice of *s* from *i* to *j* with step *k* is defined as the sequence of

0 commit comments

Comments
 (0)