diff --git a/src/libcore/slice/mod.rs b/src/libcore/slice/mod.rs index 817e309cf77..6b6ec7147b3 100644 --- a/src/libcore/slice/mod.rs +++ b/src/libcore/slice/mod.rs @@ -532,7 +532,7 @@ impl SliceExt for [T] { #[inline] fn chunks_mut(&mut self, chunk_size: usize) -> ChunksMut { - assert!(chunk_size > 0); + assert!(chunk_size != 0); ChunksMut { v: self, chunk_size: chunk_size } }