File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2479,9 +2479,9 @@ auto zip
24792479 foreach (i, S; Slices[1 .. $])
24802480 {
24812481 static assert (isSlice! S == packs, " zip: all Slices must have the same shape packs" );
2482- assert (slices[i]._lengths == slices[0 ]._lengths, " zip: all slices must have the same lengths" );
2482+ assert (slices[i + 1 ]._lengths == slices[0 ]._lengths, " zip: all slices must have the same lengths" );
24832483 static if (sameStrides)
2484- assert (slices[i].unpack.strides == slices[0 ].unpack.strides, " zip: all slices must have the same strides" );
2484+ assert (slices[i + 1 ].unpack.strides == slices[0 ].unpack.strides, " zip: all slices must have the same strides" );
24852485 }
24862486 static if (! sameStrides && minElem(staticMap! (kindOf, Slices)) != Contiguous)
24872487 {
You can’t perform that action at this time.
0 commit comments