Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 54e3990

Browse files
committed
Fixed comparison: i < k < j should be i <= k < j.
1 parent c7ff85d commit 54e3990

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Doc/ref.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,7 @@ \section{The standard type hierarchy} \label{types}
674674
\index{subscription}
675675

676676
Sequences also support slicing: \verb\a[i:j]\ selects all elements
677-
with index $k$ such that $i < k < j$. When used as an expression,
677+
with index $k$ such that $i <= k < j$. When used as an expression,
678678
a slice is a sequence of the same type --- this implies that the
679679
index set is renumbered so that it starts at 0 again.
680680
\index{slicing}

Doc/ref/ref.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,7 @@ \section{The standard type hierarchy} \label{types}
674674
\index{subscription}
675675

676676
Sequences also support slicing: \verb\a[i:j]\ selects all elements
677-
with index $k$ such that $i < k < j$. When used as an expression,
677+
with index $k$ such that $i <= k < j$. When used as an expression,
678678
a slice is a sequence of the same type --- this implies that the
679679
index set is renumbered so that it starts at 0 again.
680680
\index{slicing}

0 commit comments

Comments
 (0)