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...