We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb8734a commit d0060e7Copy full SHA for d0060e7
base/strings/substring.jl
@@ -109,8 +109,8 @@ function isvalid(s::SubString, i::Integer)
109
@inbounds return ib && isvalid(s.string, s.offset + i)::Bool
110
end
111
112
-thisind(s::SubString{String}, i::Int) = _thisind_str(s, i)
113
-nextind(s::SubString{String}, i::Int) = _nextind_str(s, i)
+@propagate_inbounds thisind(s::SubString{String}, i::Int) = _thisind_str(s, i)
+@propagate_inbounds nextind(s::SubString{String}, i::Int) = _nextind_str(s, i)
114
115
parent(s::SubString) = s.string
116
parentindices(s::SubString) = (s.offset + 1 : thisind(s.string, s.offset + s.ncodeunits),)
0 commit comments