Update library/core/src/slice/mod.rs
Co-authored-by: Janusz Marcinkiewicz <virrages@gmail.com>
This commit is contained in:
parent
7660b2fd74
commit
c331a9293a
1 changed files with 1 additions and 1 deletions
|
@ -852,7 +852,7 @@ impl<T> [T] {
|
|||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
#[inline]
|
||||
pub fn chunks_mut(&mut self, chunk_size: usize) -> ChunksMut<'_, 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");
|
||||
ChunksMut::new(self, chunk_size)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue