We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ecacaaa commit d565ce0Copy full SHA for d565ce0
src/vec.rs
@@ -16,8 +16,8 @@ use core::{
16
///
17
/// // A vector with a fixed capacity of 8 elements allocated on the stack
18
/// let mut vec = Vec::<_, 8>::new();
19
-/// vec.push(1);
20
-/// vec.push(2);
+/// vec.push(1).unwrap();
+/// vec.push(2).unwrap();
21
22
/// assert_eq!(vec.len(), 2);
23
/// assert_eq!(vec[0], 1);
0 commit comments