Rename [i..j] to [i ..= j], the same as Rust

This commit is contained in:
Nigel Tao committed 2019-10-12 18:40:53 +11:00
1 parent 18c6e5716a
commit d501daddc3
18 files changed
+219 -206

No files matched your search

+3 -3
View File
@@ -150,15 +150,15 @@ func (x IntRange) String() string {
}
buf := []byte(nil)
if x[0] == nil {
buf = append(buf, "(-∞, "...)
buf = append(buf, "(-∞"...)
} else {
buf = append(buf, '[')
buf = x[0].Append(buf, 10)
buf = append(buf, ".."...)
}
if x[1] == nil {
buf = append(buf, "+∞)"...)
buf = append(buf, " .. +∞)"...)
} else {
buf = append(buf, " ..= "...)
buf = x[1].Append(buf, 10)
buf = append(buf, ']')
}