Skip to content

Commit

Permalink
Merge pull request #441 from newAM/issue-440
Browse files Browse the repository at this point in the history
vec: fix missing error handling in docs
  • Loading branch information
Dirbaio authored Jan 15, 2024
2 parents ecacaaa + d565ce0 commit 9a2e0af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ use core::{
///
/// // A vector with a fixed capacity of 8 elements allocated on the stack
/// let mut vec = Vec::<_, 8>::new();
/// vec.push(1);
/// vec.push(2);
/// vec.push(1).unwrap();
/// vec.push(2).unwrap();
///
/// assert_eq!(vec.len(), 2);
/// assert_eq!(vec[0], 1);
Expand Down

0 comments on commit 9a2e0af

Please sign in to comment.