changeset 45599:cee7a8e37e9c

hg-core: minor rewording in docstring (D8958#inline-15005 followup) Differential Revision: https://phab.mercurial-scm.org/D9104
author Antoine cezar<acezar@chwitlabs.fr>
date Mon, 28 Sep 2020 14:31:58 +0200
parents 412a5827ad02
children b68b19104d16
files rust/hg-core/src/revlog/patch.rs
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/rust/hg-core/src/revlog/patch.rs	Mon Sep 28 14:29:05 2020 +0200
+++ b/rust/hg-core/src/revlog/patch.rs	Mon Sep 28 14:31:58 2020 +0200
@@ -20,7 +20,7 @@
 impl Chunk<'_> {
     /// Adjusted start of the chunk to replace.
     ///
-    /// Offset allow to take into account the growth/shrinkage of data
+    /// The offset, taking into account the growth/shrinkage of data
     /// induced by previously applied chunks.
     fn start_offseted_by(&self, offset: i32) -> u32 {
         let start = self.start as i32 + offset;
@@ -30,7 +30,7 @@
 
     /// Adjusted end of the chunk to replace.
     ///
-    /// Offset allow to take into account the growth/shrinkage of data
+    /// The offset, taking into account the growth/shrinkage of data
     /// induced by previously applied chunks.
     fn end_offseted_by(&self, offset: i32) -> u32 {
         self.start_offseted_by(offset) + self.data.len() as u32