Skip to content

Commit fbf8cac

Browse files
author
andrei-papou
committed
Fixed the tests
1 parent 1b5da67 commit fbf8cac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/arrayformat.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ fn format_array_v2<A, S, D, F>(view: &ArrayBase<S, D>,
2626
S: Data<Elem=A>,
2727
{
2828
if view.shape().is_empty() {
29-
// Handle weird 0-dimensional array case first
30-
return writeln!(f, "[]")
29+
// Handle 0-dimensional array case first
30+
return format(view.iter().next().unwrap(), f)
3131
}
3232

3333
let overflow_axes: Vec<Ix> = view.shape().iter()

0 commit comments

Comments
 (0)