mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-29 20:20:59 +03:00
Update library/core/src/slice/mod.rs
Co-authored-by: Janusz Marcinkiewicz <virrages@gmail.com>
This commit is contained in:
@@ -852,7 +852,7 @@ pub fn chunks(&self, chunk_size: usize) -> Chunks<'_, 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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user