1
0
mirror of https://github.com/golang/go synced 2024-11-18 08:24:44 -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:
Robert Griesemer 2016-09-02 14:21:57 -07:00
parent 0318d80e51
commit 549ca046ff

View File

@ -894,7 +894,7 @@ func (p *printer) stmtfmt(n *Node) *printer {
case n.List.Len() > 0: case n.List.Len() > 0:
// range // range
if n.List.Len() != 2 { 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()) p.f("case %v..%v", n.List.First(), n.List.Second())
default: default: