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 cb98bed commit 5397c72Copy full SHA for 5397c72
base/strings/basic.jl
@@ -802,7 +802,7 @@ elsize(s::Type{<:CodeUnits{T}}) where {T} = sizeof(T)
802
@propagate_inbounds getindex(s::CodeUnits, i::Int) = codeunit(s.s, i)
803
IndexStyle(::Type{<:CodeUnits}) = IndexLinear()
804
@inline iterate(s::CodeUnits, i=1) = (i % UInt) - 1 < length(s) ? (@inbounds s[i], i + 1) : nothing
805
-strides(::CodeUnits) = (1,)
+strides(::CodeUnits{<:Any, <:Union{String, SubString{String}}}) = (1,)
806
807
write(io::IO, s::CodeUnits) = write(io, s.s)
808
0 commit comments