Skip to content

Commit

Permalink
nextind, prevind doc strings: correct the Markdown (#54876)
Browse files Browse the repository at this point in the history
  • Loading branch information
nsajko authored Jun 22, 2024
1 parent 9d8ecaa commit 7cdbf74
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions base/tuple.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 7cdbf74

Please sign in to comment.