improve ArrayVec::push panic message

Closes https://github.com/Lokathor/tinyvec/issues/24
This commit is contained in:
Lokathor
2020-01-19 12:59:21 -07:00
parent 6daae8d5fa
commit 6a4491c47b
+1 -1
View File
@@ -352,7 +352,7 @@ impl<A: Array> ArrayVec<A> {
replace(&mut self.data.as_slice_mut()[self.len], val);
self.len += 1;
} else {
panic!("ArrayVec: overflow!")
panic!("ArrayVec::push> capacity overflow!")
}
}