Skip to content

Commit

Permalink
Resolves #191
Browse files Browse the repository at this point in the history
  • Loading branch information
Lokathor committed Mar 19, 2024
1 parent a79d8e4 commit 1169b11
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/tinyvec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -841,14 +841,6 @@ impl<A: Array> TinyVec<A> {
}

/// Place an element onto the end of the vec.
/// ## Panics
/// * If the length of the vec would overflow the capacity.
/// ```rust
/// use tinyvec::*;
/// let mut tv = tiny_vec!([i32; 10] => 1, 2, 3);
/// tv.push(4);
/// assert_eq!(tv.as_slice(), &[1, 2, 3, 4]);
/// ```
#[inline]
pub fn push(&mut self, val: A::Item) {
// The code path for moving the inline contents to the heap produces a lot
Expand Down

0 comments on commit 1169b11

Please sign in to comment.