convert s[start..start+len] to s[start..][0..len]

This commit is contained in:
dweiller
2023-05-02 22:08:54 +10:00
parent 2c5924c59a
commit bd3360e03d
14 changed files with 20 additions and 20 deletions

View File

@@ -168,7 +168,7 @@ pub fn BoundedArrayAligned(
@memcpy(self.slice()[i..][0..items.len], items);
}
/// Replace range of elements `slice[start..start+len]` with `new_items`.
/// Replace range of elements `slice[start..][0..len]` with `new_items`.
/// Grows slice if `len < new_items.len`.
/// Shrinks slice if `len > new_items.len`.
pub fn replaceRange(