mirror of https://github.com/golang/go.git
cmd/compile: fix LocResults formatting
When a LocResults is an empty list, it currently prints as ">". Make it print "<>". Change-Id: I0f596791b471d74cd4bbc0059e269708c80592dd Reviewed-on: https://go-review.googlesource.com/c/go/+/350144 Trust: Cherry Mui <cherryyz@google.com> Run-TryBot: Cherry Mui <cherryyz@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: David Chase <drchase@google.com>
This commit is contained in:
parent
b1bedc0774
commit
48e2b1ea91
|
|
@ -91,8 +91,8 @@ func (t LocPair) String() string {
|
||||||
type LocResults []Location
|
type LocResults []Location
|
||||||
|
|
||||||
func (t LocResults) String() string {
|
func (t LocResults) String() string {
|
||||||
s := "<"
|
s := ""
|
||||||
a := ""
|
a := "<"
|
||||||
for _, r := range t {
|
for _, r := range t {
|
||||||
a += s
|
a += s
|
||||||
s = ","
|
s = ","
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue