Skip to content

Commit

Permalink
Update can_push example.
Browse files Browse the repository at this point in the history
Signed-off-by: Tin Svagelj <[email protected]>
  • Loading branch information
Caellian committed Sep 17, 2023
1 parent ebd5099 commit 2169160
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -386,8 +386,8 @@ impl ContiguousMemoryStorage<ImplUnsafe> {
/// let mut storage = UnsafeContiguousMemory::new(0);
/// let value = [2, 4, 8, 16];
///
/// # assert_eq!(storage.can_push::<Vec<i32>>().unwrap(), false);
/// if !storage.can_push::<Vec<i32>>().unwrap() {
/// # assert_eq!(storage.can_push::<Vec<i32>>(), false);
/// if !storage.can_push::<Vec<i32>>() {
/// storage.resize(storage.get_capacity() + size_of_val(&value));
///
/// // ...update old pointers...
Expand Down

0 comments on commit 2169160

Please sign in to comment.