mirror of
https://github.com/go-sylixos/elvish.git
synced 2024-12-05 03:17:50 +08:00
Fix Repr of empty list.
This commit is contained in:
parent
cc412f8684
commit
c2a3e78d5f
|
@ -212,7 +212,7 @@ func (b *ListReprBuilder) WriteElem(v string) {
|
|||
|
||||
func (b *ListReprBuilder) String() string {
|
||||
if b.buf.Len() == 0 {
|
||||
return "["
|
||||
return "[]"
|
||||
}
|
||||
b.buf.WriteByte(']')
|
||||
return b.buf.String()
|
||||
|
|
Loading…
Reference in New Issue
Block a user