Skip to content

Commit b937733

Browse files
committed
Update multidimensional.jl
typo
1 parent 4b6d78d commit b937733

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

base/multidimensional.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -627,9 +627,9 @@ module IteratorsMD
627627
fl, vl = _splitlinear(rs, first(iter.indices[1]))
628628
fr, vr = _splitlinear(rs, last(iter.indices[1]))
629629
outer = @inbounds if ndims(oiter) == 1
630-
CartesianIndices((x.indices[1][vl:vr],))
630+
CartesianIndices((oiter.indices[1][vl:vr],))
631631
else
632-
view(ReshapedArray(x, (length(x),), ()), vl:vr)
632+
view(ReshapedArray(oiter, (length(oiter),), ()), vl:vr)
633633
end
634634
# Use Generator to make inner loop branchless
635635
@inline function genouter(i::Int, I::CartesianIndex)

0 commit comments

Comments
 (0)