From b7e5eab27645c329c93c0dc07a2470eb22e711ef Mon Sep 17 00:00:00 2001 From: Carsten Bauer Date: Sun, 12 Aug 2018 15:04:43 +0200 Subject: [PATCH] define iterate(s::LaTeXString) (#24) --- src/LaTeXStrings.jl | 1 + 1 file changed, 1 insertion(+) diff --git a/src/LaTeXStrings.jl b/src/LaTeXStrings.jl index 0f26c44..757c8ae 100644 --- a/src/LaTeXStrings.jl +++ b/src/LaTeXStrings.jl @@ -61,6 +61,7 @@ Compat.firstindex(s::LaTeXString) = Compat.firstindex(s.s) Compat.lastindex(s::LaTeXString) = Compat.lastindex(s.s) @static if isdefined(Base, :iterate) Base.iterate(s::LaTeXString, i::Int) = iterate(s.s, i) + Base.iterate(s::LaTeXString) = iterate(s.s) else Base.start(s::LaTeXString) = start(s.s) Base.next(s::LaTeXString, i) = next(s.s, i)