Skip to content

Commit

Permalink
clean up thisind documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
bkamins committed May 30, 2018
1 parent c0f0509 commit 1d63ad3
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions base/strings/basic.jl
Original file line number Diff line number Diff line change
Expand Up @@ -370,10 +370,10 @@ return `i`. In all other cases throw `BoundsError`.
# Examples
```jldoctest
julia> thisind("αβγdef", 0)
julia> thisind("α", 0)
0
julia> thisind("αβγdef", 1)
julia> thisind("α", 1)
1
julia> thisind("α", 2)
Expand All @@ -391,12 +391,6 @@ julia> thisind("α", -1)
ERROR: BoundsError: attempt to access "α"
at index [-1]
[...]
julia> thisind("αβγdef", 9)
9
julia> thisind("αβγdef", 10)
10
```
"""
thisind(s::AbstractString, i::Integer) = thisind(s, Int(i))
Expand Down

0 comments on commit 1d63ad3

Please sign in to comment.