mirror of
https://github.com/golang/go
synced 2024-11-18 04:04:49 -07:00
cmd/compile: fix argument for given format verb
Follow-up to https://go-review.googlesource.com/28394. Change-Id: Ic4147e9ae786a4de0a3454131fac03e940ae2e76 Reviewed-on: https://go-review.googlesource.com/28417 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
This commit is contained in:
parent
0318d80e51
commit
549ca046ff
@ -894,7 +894,7 @@ func (p *printer) stmtfmt(n *Node) *printer {
|
||||
case n.List.Len() > 0:
|
||||
// range
|
||||
if n.List.Len() != 2 {
|
||||
Fatalf("bad OCASE list length %d", n.List)
|
||||
Fatalf("bad OCASE list length %d", n.List.Len())
|
||||
}
|
||||
p.f("case %v..%v", n.List.First(), n.List.Second())
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user