mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-18 00:32:11 +01:00
Rename [i..j] to [i ..= j], the same as Rust
This commit is contained in:
1 parent
18c6e5716a
commit
d501daddc3
18 files changed
+219
-206
No files matched your search
+9
-3
@@ -234,9 +234,15 @@ func (n *TypeExpr) appendStr(buf []byte, tm *t.Map, depth uint32) []byte {
|
||||
}
|
||||
if n.Min() != nil || n.Max() != nil {
|
||||
buf = append(buf, '[')
|
||||
buf = n.Min().appendStr(buf, tm, false, 0)
|
||||
buf = append(buf, ".."...)
|
||||
buf = n.Max().appendStr(buf, tm, false, 0)
|
||||
if n.Min() != nil {
|
||||
buf = n.Min().appendStr(buf, tm, false, 0)
|
||||
buf = append(buf, ' ')
|
||||
}
|
||||
buf = append(buf, "..="...)
|
||||
if n.Max() != nil {
|
||||
buf = append(buf, ' ')
|
||||
buf = n.Max().appendStr(buf, tm, false, 0)
|
||||
}
|
||||
buf = append(buf, ']')
|
||||
}
|
||||
return buf
|
||||
|
||||
Reference in new issue
Block a user