9
9
use alloc:: vec;
10
10
#[ cfg( not( feature = "std" ) ) ]
11
11
use alloc:: vec:: Vec ;
12
- use std:: mem:: { forget, size_of} ;
13
- use std:: ptr:: NonNull ;
14
12
#[ allow( unused_imports) ]
15
13
use std:: compile_error;
14
+ use std:: mem:: { forget, size_of} ;
15
+ use std:: ptr:: NonNull ;
16
16
17
17
use crate :: imp_prelude:: * ;
18
18
use crate :: { dimension, ArcArray1 , ArcArray2 } ;
@@ -28,11 +28,11 @@ use crate::{dimension, ArcArray1, ArcArray2};
28
28
///
29
29
/// let a3 = array![[[1, 2], [3, 4]],
30
30
/// [[5, 6], [7, 8]]];
31
- ///
31
+ ///
32
32
/// let a4 = array![[[[1, 2, 3, 4]]]];
33
- ///
33
+ ///
34
34
/// let a5 = array![[[[[1, 2, 3, 4, 5]]]]];
35
- ///
35
+ ///
36
36
/// let a6 = array![[[[[[1, 2, 3, 4, 5, 6]]]]]];
37
37
///
38
38
/// assert_eq!(a1.shape(), &[4]);
@@ -47,12 +47,12 @@ use crate::{dimension, ArcArray1, ArcArray2};
47
47
/// elements are moved into the resulting `Array`.
48
48
///
49
49
/// Use `array![...].into_shared()` to create an `ArcArray`.
50
- ///
50
+ ///
51
51
/// Attempts to crate 7D+ arrays with this macro will lead to
52
52
/// a compiler error, since the difference between a 7D array
53
53
/// of i32 and a 6D array of `[i32; 3]` is ambiguous. Higher-dim
54
54
/// arrays can be created with [`ArrayD`].
55
- ///
55
+ ///
56
56
/// ```compile_fail
57
57
/// use ndarray::array;
58
58
/// let a7 = array![[[[[[[1, 2, 3]]]]]]];
0 commit comments