Commit 549ca046 authored by Robert Griesemer's avatar Robert Griesemer

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/28417Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: 's avatarJosh Bleecher Snyder <josharian@gmail.com>
parent 0318d80e
...@@ -894,7 +894,7 @@ func (p *printer) stmtfmt(n *Node) *printer { ...@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment