mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
Remove empty vec assertion flow distrupt
Co-authored-by: Joshua Nelson <joshua@yottadb.com>
This commit is contained in:
parent
12b4cf8c6c
commit
2d1ab83834
@ -117,7 +117,6 @@ use crate::raw_vec::RawVec;
|
||||
///
|
||||
/// // The following is equivalent, but potentially slower:
|
||||
/// let mut vec = Vec::with_capacity(5);
|
||||
/// assert_eq!(vec, []);
|
||||
/// vec.resize(5, 0);
|
||||
/// assert_eq!(vec, [0, 0, 0, 0, 0]);
|
||||
/// ```
|
||||
|
Loading…
Reference in New Issue
Block a user