Skip to content

Commit

Permalink
Don't use done to determine whether an index inbounds for an Array
Browse files Browse the repository at this point in the history
  • Loading branch information
martinholters committed May 18, 2018
1 parent d0caa35 commit 5ea4fcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ordered_dict.jl
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ function start(t::OrderedDict)
t.ndel > 0 && rehash!(t)
1
end
done(t::OrderedDict, i::Int) = done(t.keys, i)
done(t::OrderedDict, i::Int) = i > length(t.keys)
next(t::OrderedDict, i::Int) = (Pair(t.keys[i],t.vals[i]), i+1)

if isdefined(Base, :KeySet) # 0.7.0-DEV.2722
Expand Down

0 comments on commit 5ea4fcc

Please sign in to comment.