Skip to content

Commit 5397c72

Browse files
jakobnissenmbauman
andauthored
Update base/strings/basic.jl
Co-authored-by: Matt Bauman <mbauman@gmail.com>
1 parent cb98bed commit 5397c72

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
@@ -802,7 +802,7 @@ elsize(s::Type{<:CodeUnits{T}}) where {T} = sizeof(T)
802802
@propagate_inbounds getindex(s::CodeUnits, i::Int) = codeunit(s.s, i)
803803
IndexStyle(::Type{<:CodeUnits}) = IndexLinear()
804804
@inline iterate(s::CodeUnits, i=1) = (i % UInt) - 1 < length(s) ? (@inbounds s[i], i + 1) : nothing
805-
strides(::CodeUnits) = (1,)
805+
strides(::CodeUnits{<:Any, <:Union{String, SubString{String}}}) = (1,)
806806

807807
write(io::IO, s::CodeUnits) = write(io, s.s)
808808

0 commit comments

Comments
 (0)