diff --git a/base/array.jl b/base/array.jl index e0f378fd707b4..b9ab49dd1e42d 100644 --- a/base/array.jl +++ b/base/array.jl @@ -265,7 +265,7 @@ collect(itr) = collect(eltype(itr), itr) ## Iteration ## start(A::Array) = 1 next(a::Array,i) = (a[i],i+1) -done(a::Array,i) = (i > length(a)) +done(a::Array,i) = i == length(a)+1 ## Indexing: getindex ##