Commit 809bb3a7 authored by Josh Bleecher Snyder's avatar Josh Bleecher Snyder

cmd/compile: fix missing format verb

Found by vet.

Change-Id: I50420771678b1a3695348ce1a81f410479ed09a1
Reviewed-on: https://go-review.googlesource.com/28394
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
parent fe5619b4
...@@ -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", n.List) Fatalf("bad OCASE list length %d", n.List)
} }
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