Skip to content

Commit

Permalink
nextind, prevind doc strings: correct the Markdown (#54876)
Browse files Browse the repository at this point in the history
(cherry picked from commit 7cdbf74)
  • Loading branch information
nsajko authored and KristofferC committed Jun 22, 2024
1 parent 46d0705 commit 82d961b
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 @@ -76,8 +76,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 @@ -110,8 +110,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 82d961b

Please sign in to comment.