Unnamed repository; edit this file 'description' to name the repository.
| -rw-r--r-- | lib/text-size/src/range.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/text-size/src/range.rs b/lib/text-size/src/range.rs index bc899e71a0..b52a64af39 100644 --- a/lib/text-size/src/range.rs +++ b/lib/text-size/src/range.rs @@ -135,8 +135,8 @@ impl TextRange { } /// Extends the range to cover `other` offsets as well. - pub fn cover_offset(self, other: TextSize) -> TextRange { - self.cover(TextRange::empty(other)) + pub fn cover_offset(self, offset: TextSize) -> TextRange { + self.cover(TextRange::empty(offset)) } /// Add an offset to this range. |