@@ -1879,22 +1879,22 @@ function mapslices(f, A::AbstractArray, dims::AbstractVector)
18791879 R[ridx... ] = r1
18801880
18811881 nidx = length (otherdims)
1882- indexes = Iterators. drop (CartesianRange (itershape), 1 )
1883- inner_mapslices! (safe_for_reuse, indexes , nidx, idx, otherdims, ridx, Aslice, A, f, R)
1882+ indices = Iterators. drop (CartesianRange (itershape), 1 )
1883+ inner_mapslices! (safe_for_reuse, indices , nidx, idx, otherdims, ridx, Aslice, A, f, R)
18841884end
18851885
1886- @noinline function inner_mapslices! (safe_for_reuse, indexes , nidx, idx, otherdims, ridx, Aslice, A, f, R)
1886+ @noinline function inner_mapslices! (safe_for_reuse, indices , nidx, idx, otherdims, ridx, Aslice, A, f, R)
18871887 if safe_for_reuse
18881888 # when f returns an array, R[ridx...] = f(Aslice) line copies elements,
18891889 # so we can reuse Aslice
1890- for I in indexes # skip the first element, we already handled it
1890+ for I in indices # skip the first element, we already handled it
18911891 replace_tuples! (nidx, idx, ridx, otherdims, I)
18921892 _unsafe_getindex! (Aslice, A, idx... )
18931893 R[ridx... ] = f (Aslice)
18941894 end
18951895 else
18961896 # we can't guarantee safety (#18524), so allocate new storage for each slice
1897- for I in indexes
1897+ for I in indices
18981898 replace_tuples! (nidx, idx, ridx, otherdims, I)
18991899 R[ridx... ] = f (A[idx... ])
19001900 end
0 commit comments