Unnamed repository; edit this file 'description' to name the repository.
Switch to Rust range notation
| -rw-r--r-- | lib/text-size/src/range.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/text-size/src/range.rs b/lib/text-size/src/range.rs index e70a7b6a33..73af2896ff 100644 --- a/lib/text-size/src/range.rs +++ b/lib/text-size/src/range.rs @@ -37,7 +37,7 @@ pub struct TextRange { impl fmt::Debug for TextRange { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - write!(f, "[{}..{})", self.start().raw, self.end().raw) + write!(f, "{}..{}", self.start().raw, self.end().raw) } } |