diff options
| author | Amogh Shivaram <ashivaram@solesca.com> | 2025-06-07 08:18:44 -0500 |
|---|---|---|
| committer | Amogh Shivaram <ashivaram@solesca.com> | 2025-06-07 08:18:44 -0500 |
| commit | c1d32d85339a5c06f95da49c1731ac9a3d9c2ea3 (patch) | |
| tree | 25991e9708f8450d68f27b5f88d19c7a6e997f5c /library/alloc/src/vec | |
| parent | 343db27aa6256ebbde88b1147eb42d41d4e77e64 (diff) | |
| download | rust-c1d32d85339a5c06f95da49c1731ac9a3d9c2ea3.tar.gz rust-c1d32d85339a5c06f95da49c1731ac9a3d9c2ea3.zip | |
fix wording in assert
Diffstat (limited to 'library/alloc/src/vec')
| -rw-r--r-- | library/alloc/src/vec/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/alloc/src/vec/mod.rs b/library/alloc/src/vec/mod.rs index bdac38e9120..bd4273d23aa 100644 --- a/library/alloc/src/vec/mod.rs +++ b/library/alloc/src/vec/mod.rs @@ -3028,7 +3028,7 @@ impl<T, A: Allocator> Vec<T, A> { #[unstable(feature = "vec_into_chunks", issue = "142137")] pub fn into_chunks<const N: usize>(mut self) -> Vec<[T; N], A> { const { - assert!(N != 0, "chunk size should be greater than zero"); + assert!(N != 0, "chunk size must be greater than zero"); } let (len, cap) = (self.len(), self.capacity()); |
