Patchwork D9104: hg-core: minor rewording in docstring (D8958#inline-15005 followup)

login
register
mail settings
Submitter phabricator
Date Sept. 28, 2020, 1:48 p.m.
Message ID <differential-rev-PHID-DREV-qv2rg2mbmenm32kdgaha-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/47319/
State Superseded
Headers show

Comments

phabricator - Sept. 28, 2020, 1:48 p.m.
acezar created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D9104

AFFECTED FILES
  rust/hg-core/src/revlog/patch.rs

CHANGE DETAILS




To: acezar, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

diff --git a/rust/hg-core/src/revlog/patch.rs b/rust/hg-core/src/revlog/patch.rs
--- a/rust/hg-core/src/revlog/patch.rs
+++ b/rust/hg-core/src/revlog/patch.rs
@@ -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 {
         (self.start as i32 + offset) as u32
@@ -28,7 +28,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