about summary refs log tree commit diff
diff options
context:
space:
mode:
authorIvan Tham <pickfire@riseup.net>2020-08-29 23:07:40 +0800
committerGitHub <noreply@github.com>2020-08-29 23:07:40 +0800
commit2d1ab838342c880892a5243bf338b7ead7472928 (patch)
tree93439a064e374d6e360036581f7a1f8e536d7051
parent12b4cf8c6c79239cd7c3c2e7dbb2ea97351da02e (diff)
downloadrust-2d1ab838342c880892a5243bf338b7ead7472928.tar.gz
rust-2d1ab838342c880892a5243bf338b7ead7472928.zip
Remove empty vec assertion flow distrupt
Co-authored-by: Joshua Nelson <joshua@yottadb.com>
-rw-r--r--library/alloc/src/vec.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/library/alloc/src/vec.rs b/library/alloc/src/vec.rs
index c2b835bcf33..277183c120d 100644
--- a/library/alloc/src/vec.rs
+++ b/library/alloc/src/vec.rs
@@ -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]);
 /// ```