##// END OF EJS Templates
hg-core: minor rewording in docstring (D8958#inline-15005 followup)...
Antoine cezar -
r46173:cee7a8e3 default
parent child Browse files
Show More
@@ -20,7 +20,7 b" struct Chunk<'a> {"
20 impl Chunk<'_> {
20 impl Chunk<'_> {
21 /// Adjusted start of the chunk to replace.
21 /// Adjusted start of the chunk to replace.
22 ///
22 ///
23 /// Offset allow to take into account the growth/shrinkage of data
23 /// The offset, taking into account the growth/shrinkage of data
24 /// induced by previously applied chunks.
24 /// induced by previously applied chunks.
25 fn start_offseted_by(&self, offset: i32) -> u32 {
25 fn start_offseted_by(&self, offset: i32) -> u32 {
26 let start = self.start as i32 + offset;
26 let start = self.start as i32 + offset;
@@ -30,7 +30,7 b" impl Chunk<'_> {"
30
30
31 /// Adjusted end of the chunk to replace.
31 /// Adjusted end of the chunk to replace.
32 ///
32 ///
33 /// Offset allow to take into account the growth/shrinkage of data
33 /// The offset, taking into account the growth/shrinkage of data
34 /// induced by previously applied chunks.
34 /// induced by previously applied chunks.
35 fn end_offseted_by(&self, offset: i32) -> u32 {
35 fn end_offseted_by(&self, offset: i32) -> u32 {
36 self.start_offseted_by(offset) + self.data.len() as u32
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