Skip to content

Commit 8c16c6a

Browse files
matkladCAD97
andauthored
Update src/range.rs
Co-Authored-By: Christopher Durham <[email protected]>
1 parent e8dcd41 commit 8c16c6a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/range.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,8 @@ impl TextRange {
135135
}
136136

137137
/// Extends the range to cover `other` offsets as well.
138-
pub fn cover_offset(self, other: TextSize) -> TextRange {
139-
self.cover(TextRange::empty(other))
138+
pub fn cover_offset(self, offset: TextSize) -> TextRange {
139+
self.cover(TextRange::empty(offset))
140140
}
141141

142142
/// Add an offset to this range.

0 commit comments

Comments
 (0)