diff --git a/base/array.jl b/base/array.jl index 90721fcaa56b0..eba2baefee2bc 100644 --- a/base/array.jl +++ b/base/array.jl @@ -2332,7 +2332,7 @@ function filter!(f, a::AbstractVector) for acurr in a if f(acurr) - a[i] = acurr + @inbounds a[i] = acurr y = iterate(idx, state) y === nothing && (i += 1; break) i, state = y