]> git.lizzy.rs Git - rust.git/commitdiff
remove exclamation mark
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>
Thu, 7 Apr 2022 02:44:11 +0000 (04:44 +0200)
committerGitHub <noreply@github.com>
Thu, 7 Apr 2022 02:44:11 +0000 (04:44 +0200)
Co-authored-by: Janusz Marcinkiewicz <virrages@gmail.com>
library/core/src/slice/mod.rs

index 4f0f51d1a4ff4dc6103f5110dbdbc9dd6e31b785..376ab41248d622bbfa5ce811e54f9d25a20e0397 100644 (file)
@@ -814,7 +814,7 @@ pub fn windows(&self, size: usize) -> Windows<'_, T> {
     #[stable(feature = "rust1", since = "1.0.0")]
     #[inline]
     pub fn chunks(&self, chunk_size: usize) -> Chunks<'_, T> {
-        assert_ne!(chunk_size, 0, "Chunks cannot have a size of zero!");
+        assert_ne!(chunk_size, 0, "chunks cannot have a size of zero");
         Chunks::new(self, chunk_size)
     }