Skip to content

Commit

Permalink
define iterate(s::LaTeXString) (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
carstenbauer authored and stevengj committed Aug 12, 2018
1 parent 4c9ad10 commit b7e5eab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/LaTeXStrings.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b7e5eab

Please sign in to comment.