Skip to content

Commit e2facb7

Browse files
committed
Actually fixes formatting
1 parent 98b1a33 commit e2facb7

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/free_functions.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
use alloc::vec;
1010
#[cfg(not(feature = "std"))]
1111
use alloc::vec::Vec;
12-
use std::mem::{forget, size_of};
13-
use std::ptr::NonNull;
1412
#[allow(unused_imports)]
1513
use std::compile_error;
14+
use std::mem::{forget, size_of};
15+
use std::ptr::NonNull;
1616

1717
use crate::imp_prelude::*;
1818
use crate::{dimension, ArcArray1, ArcArray2};
@@ -28,11 +28,11 @@ use crate::{dimension, ArcArray1, ArcArray2};
2828
///
2929
/// let a3 = array![[[1, 2], [3, 4]],
3030
/// [[5, 6], [7, 8]]];
31-
///
31+
///
3232
/// let a4 = array![[[[1, 2, 3, 4]]]];
33-
///
33+
///
3434
/// let a5 = array![[[[[1, 2, 3, 4, 5]]]]];
35-
///
35+
///
3636
/// let a6 = array![[[[[[1, 2, 3, 4, 5, 6]]]]]];
3737
///
3838
/// assert_eq!(a1.shape(), &[4]);
@@ -47,12 +47,12 @@ use crate::{dimension, ArcArray1, ArcArray2};
4747
/// elements are moved into the resulting `Array`.
4848
///
4949
/// Use `array![...].into_shared()` to create an `ArcArray`.
50-
///
50+
///
5151
/// Attempts to crate 7D+ arrays with this macro will lead to
5252
/// a compiler error, since the difference between a 7D array
5353
/// of i32 and a 6D array of `[i32; 3]` is ambiguous. Higher-dim
5454
/// arrays can be created with [`ArrayD`].
55-
///
55+
///
5656
/// ```compile_fail
5757
/// use ndarray::array;
5858
/// let a7 = array![[[[[[[1, 2, 3]]]]]]];

0 commit comments

Comments
 (0)