Skip to content

Commit 467d22c

Browse files
bors[bot]matklad
andauthored
Merge #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]>
2 parents d0560c7 + e5bb71d commit 467d22c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/range.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ pub struct TextRange {
3535

3636
impl fmt::Debug for TextRange {
3737
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
38-
write!(f, "[{}..{})", self.start().raw, self.end().raw)
38+
write!(f, "{}..{}", self.start().raw, self.end().raw)
3939
}
4040
}
4141

0 commit comments

Comments
 (0)