Skip to content

Commit 0275934

Browse files
committed
DOC: Array::uninitialized doc update
1 parent dd6cae0 commit 0275934

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/impl_constructors.rs

+3
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,9 @@ where
467467

468468
/// Create an array with uninitalized elements, shape `shape`.
469469
///
470+
/// Prefer to use [`maybe_uninit()`](ArrayBase::maybe_uninit) if possible, because it is
471+
/// easier to use correctly.
472+
///
470473
/// **Panics** if the number of elements in `shape` would overflow isize.
471474
///
472475
/// ### Safety

0 commit comments

Comments
 (0)