Skip to content

Commit 909e972

Browse files
committed
also an ::Int typeassert for thisind
1 parent 2488ebd commit 909e972

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/strings/basic.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ ERROR: BoundsError: attempt to access 2-codeunit String at index [-1]
446446
[...]
447447
```
448448
"""
449-
thisind(s::AbstractString, i::Integer) = thisind(s, Int(i)::Int)
449+
thisind(s::AbstractString, i::Integer) = thisind(s, Int(i)::Int)::Int
450450

451451
function thisind(s::AbstractString, i::Int)
452452
z = ncodeunits(s)::Int + 1

0 commit comments

Comments
 (0)