Skip to content

Commit

Permalink
Fixed assert.
Browse files Browse the repository at this point in the history
  • Loading branch information
nathansizemore committed Jan 11, 2017
1 parent 1fd451c commit f1b18e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ impl<T> Slab<T> {
(mem::size_of::<T>() * new_capacity)) as *mut T
};

assert!(maybe_ptr.is_null(), "Out of Memory");
assert!(!maybe_ptr.is_null(), "Out of Memory");

self.capacity = new_capacity;
self.mem = maybe_ptr;
Expand Down

0 comments on commit f1b18e1

Please sign in to comment.