diff --git a/base/iterators.jl b/base/iterators.jl index 696acbad59068..bebe8ac1701f1 100644 --- a/base/iterators.jl +++ b/base/iterators.jl @@ -115,7 +115,7 @@ and `x` is the `i`th value from the given iterator. It's useful when you need not only the values `x` over which you are iterating, but also the number of iterations so far. Note that `i` may not be valid for indexing `iter`; it's also possible that `x != iter[i]`, if `iter` -has indices that do not start at 1. See the `enumerate(IndexLinear(), +has indices that do not start at 1. See the `pairs(IndexLinear(), iter)` method if you want to ensure that `i` is an index. # Examples