Show More
@@ -20,7 +20,7 b" struct Chunk<'a> {" | |||
|
20 | 20 | impl Chunk<'_> { |
|
21 | 21 | /// Adjusted start of the chunk to replace. |
|
22 | 22 | /// |
|
23 |
/// |
|
|
23 | /// The offset, taking into account the growth/shrinkage of data | |
|
24 | 24 | /// induced by previously applied chunks. |
|
25 | 25 | fn start_offseted_by(&self, offset: i32) -> u32 { |
|
26 | 26 | let start = self.start as i32 + offset; |
@@ -30,7 +30,7 b" impl Chunk<'_> {" | |||
|
30 | 30 | |
|
31 | 31 | /// Adjusted end of the chunk to replace. |
|
32 | 32 | /// |
|
33 |
/// |
|
|
33 | /// The offset, taking into account the growth/shrinkage of data | |
|
34 | 34 | /// induced by previously applied chunks. |
|
35 | 35 | fn end_offseted_by(&self, offset: i32) -> u32 { |
|
36 | 36 | self.start_offseted_by(offset) + self.data.len() as u32 |
General Comments 0
You need to be logged in to leave comments.
Login now