Unnamed repository; edit this file 'description' to name the repository.
Merge rust-analyzer/text-size#11
11: Switch to mathematical range notation r=matklad a=matklad Just an option: `[10..20)` feel like a weird mix of rust and math. `[10, 20)` is just picking the math notation. Co-authored-by: Aleksey Kladov <[email protected]>
bors[bot] 2020-03-13
parent c44a24e · parent 930462d · commit e5d76bb
-rw-r--r--lib/text-size/src/range.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/text-size/src/range.rs b/lib/text-size/src/range.rs
index c06c19dfe4..ae3b29c152 100644
--- a/lib/text-size/src/range.rs
+++ b/lib/text-size/src/range.rs
@@ -35,7 +35,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)
}
}