Skip to content

Commit 077ef39

Browse files
committed
fix a join error message
1 parent 682d405 commit 077ef39

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/algorithm/dyadic/combine.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -508,15 +508,14 @@ impl<T: ArrayValue> Array<T> {
508508
if self.rank() <= other.rank() || self.rank() - other.rank() > 1 {
509509
return Err(C::fill_error(ctx.error(format!(
510510
"Cannot join rank {} array with rank {} array{e}",
511-
other.rank(),
512-
self.rank()
511+
self.rank(),
512+
other.rank()
513513
))));
514514
}
515515
if self.shape[1..] != other.shape {
516516
return Err(C::fill_error(ctx.error(format!(
517517
"Cannot join arrays of shapes {} and {}{e}",
518-
other.shape,
519-
FormatShape(&self.shape[1..]),
518+
self.shape, other.shape
520519
))));
521520
}
522521
}

0 commit comments

Comments
 (0)