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 a563e33
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 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 Expand Up @@ -453,7 +447,7 @@ julia> prevind("α", 2, 2)
0
julia> prevind("α", 2, 3)
0
-1
```
"""
prevind(s::AbstractString, i::Integer, n::Integer) = prevind(s, Int(i), Int(n))
Expand Down

0 comments on commit a563e33

Please sign in to comment.