diff --git a/base/tuple.jl b/base/tuple.jl index 39c73a52c5a98..cc22ea75c041c 100644 --- a/base/tuple.jl +++ b/base/tuple.jl @@ -77,8 +77,8 @@ keys(@nospecialize t::Tuple) = OneTo(length(t)) """ prevind(A, i) -Return the index before `i` in `A`. The returned index is often equivalent to `i -- 1` for an integer `i`. This function can be useful for generic code. +Return the index before `i` in `A`. The returned index is often equivalent to +`i - 1` for an integer `i`. This function can be useful for generic code. !!! warning The returned index might be out of bounds. Consider using @@ -111,8 +111,8 @@ function prevind end """ nextind(A, i) -Return the index after `i` in `A`. The returned index is often equivalent to `i -+ 1` for an integer `i`. This function can be useful for generic code. +Return the index after `i` in `A`. The returned index is often equivalent to +`i + 1` for an integer `i`. This function can be useful for generic code. !!! warning The returned index might be out of bounds. Consider using