1
Fork 0

doc: apply suggestions

This commit is contained in:
William Woodruff 2020-12-11 10:09:40 -05:00
parent 9cf2516251
commit d986924eb1
No known key found for this signature in database
GPG key ID: 70F70A3979DDCED3
2 changed files with 6 additions and 4 deletions

View file

@ -29,8 +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.
/// Also, note that `vec![expr; 0]` is allowed, and produces an empty vector.
/// This will still evaluate `expr`, however, and immediately drop the resulting value, so
/// be mindful of side effects.
///
/// [`Vec`]: crate::vec::Vec
#[cfg(not(test))]