Unnamed repository; edit this file 'description' to name the repository.
Update src/range.rs
Co-Authored-By: Christopher Durham <[email protected]>
Aleksey Kladov 2020-03-21
parent 0edd209 · commit 6c8c54e
-rw-r--r--lib/text-size/src/range.rs4
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.