mirror of
https://github.com/golang/go.git
synced 2025-05-22 16:09:37 +00:00
cmd/compile: use %v for Node formatting
CL 197817 replaced a use of n.Rlist with n.Right in a Fprintf call, but it left the corresponding format as %.v, which broke the TestFormats test on the longtest builder. Since with n.Right is custom to use %v (and not %.v), replace the format with %v. Fixes the longtest builder. Change-Id: Icf5bf820a936c51e633c25ada1a71a1ffb6d28c2 Reviewed-on: https://go-review.googlesource.com/c/go/+/197837 Run-TryBot: Alberto Donizetti <alb.donizetti@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Matthew Dempsky <mdempsky@google.com>
This commit is contained in:
parent
c729116332
commit
2c47caa900
@ -945,7 +945,8 @@ func (n *Node) stmtfmt(s fmt.State, mode fmtMode) {
|
||||
fallthrough
|
||||
|
||||
case OAS2DOTTYPE, OAS2FUNC, OAS2MAPR, OAS2RECV:
|
||||
mode.Fprintf(s, "%.v = %.v", n.List, n.Right)
|
||||
mode.Fprintf(s, "%.v = %v", n.List, n.Right)
|
||||
|
||||
case ORETURN:
|
||||
mode.Fprintf(s, "return %.v", n.List)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user