fix wording in assert · rust-lang/rust@c1d32d8 (original) (raw)

Original file line number Diff line number Diff line change
@@ -3028,7 +3028,7 @@ impl<T, A: Allocator> Vec<T, A> {
3028 3028 #[unstable(feature = "vec_into_chunks", issue = "142137")]
3029 3029 pub fn into_chunks<const N: usize>(mut self) -> Vec<[T; N], A> {
3030 3030 const {
3031 -assert!(N != 0, "chunk size should be greater than zero");
3031 +assert!(N != 0, "chunk size must be greater than zero");
3032 3032 }
3033 3033
3034 3034 let (len, cap) = (self.len(), self.capacity());