From patchwork Mon Sep 28 13:48:58 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D9104: hg-core: minor rewording in docstring (D8958#inline-15005 followup) From: phabricator X-Patchwork-Id: 47319 Message-Id: To: Phabricator Cc: mercurial-devel@mercurial-scm.org Date: Mon, 28 Sep 2020 13:48:58 +0000 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 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