Skip to content

Commit adc7495

Browse files
committed
DOC: Array::uninitialized doc update
1 parent 0a86db2 commit adc7495

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/impl_constructors.rs

Lines changed: 3 additions & 0 deletions
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)