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 acff4d8 commit e4dd4f9Copy full SHA for e4dd4f9
test/strings/basic.jl
@@ -555,7 +555,8 @@ mutable struct CharStr <: AbstractString
555
chars::Vector{Char}
556
CharStr(x) = new(collect(x))
557
end
558
-Base.iterate(x::CharStr, i::Integer=1) = iterate(x.chars, i)
+Base.iterate(x::CharStr) = iterate(x.chars)
559
+Base.iterate(x::CharStr, state) = iterate(x.chars, state)
560
Base.lastindex(x::CharStr) = lastindex(x.chars)
561
@testset "cmp without UTF-8 indexing" begin
562
# Simple case, with just ANSI Latin 1 characters
0 commit comments