doc(array,vec): add notes about side effects when empty-initializing
This commit is contained in:
parent
d32c320d7e
commit
9cf2516251
2 changed files with 6 additions and 0 deletions
|
@ -29,6 +29,9 @@
|
|||
/// to the same boxed integer value, not five references pointing to independently
|
||||
/// boxed integers.
|
||||
///
|
||||
/// Also, note that `[T; 0]` is a valid initializer. This will initialize (or call)
|
||||
/// `T` but not populate the vector with it, so be mindful of side effects.
|
||||
///
|
||||
/// [`Vec`]: crate::vec::Vec
|
||||
#[cfg(not(test))]
|
||||
#[macro_export]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue