Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 0221320

Browse files
committed
Fix Dim4 Displat trait impl doc test
1 parent 96ab292 commit 0221320

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/core/dim4.rs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,13 @@ impl IndexMut<usize> for Dim4 {
6464
/// use arrayfire::Dim4;
6565
///
6666
/// let dims = Dim4::new(&[4, 4, 2, 1]);
67-
/// println!("0th Dimension length is {}", dims[0]); // -> 4
67+
/// println!("Shape is {}", dims); // -> [4, 4, 2, 1]
6868
/// ```
6969
impl fmt::Display for Dim4 {
7070
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
7171
write!(
7272
f,
73-
"[{} {} {} {}]",
73+
"[{}, {}, {}, {}]",
7474
self.dims[0], self.dims[1], self.dims[2], self.dims[3]
7575
)
7676
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /