Fix comparison

This commit is contained in:
Brendan Hansknecht 2021-10-24 12:05:03 -07:00
parent 31f61d81f1
commit 5d42fe4448

View file

@ -136,7 +136,7 @@ impl<T> RocList<T> {
where where
T: Clone, T: Clone,
{ {
assert!(capacity >= 0); assert!(capacity > 0);
assert!(slice.len() <= capacity); assert!(slice.len() <= capacity);
let ptr = slice.as_ptr(); let ptr = slice.as_ptr();