From 2169160c569045d439e8a6476b48b727348832fc Mon Sep 17 00:00:00 2001 From: Tin Svagelj Date: Mon, 18 Sep 2023 00:52:40 +0200 Subject: [PATCH] Update can_push example. Signed-off-by: Tin Svagelj --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 447aab1..28b494a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -386,8 +386,8 @@ impl ContiguousMemoryStorage { /// let mut storage = UnsafeContiguousMemory::new(0); /// let value = [2, 4, 8, 16]; /// - /// # assert_eq!(storage.can_push::>().unwrap(), false); - /// if !storage.can_push::>().unwrap() { + /// # assert_eq!(storage.can_push::>(), false); + /// if !storage.can_push::>() { /// storage.resize(storage.get_capacity() + size_of_val(&value)); /// /// // ...update old pointers...