]> Cypherpunks repositories - gostls13.git/commit
cmd/vet: use go/printer to pretty-print expressions in printf messages
authorRob Pike <r@golang.org>
Fri, 1 Mar 2013 20:30:09 +0000 (12:30 -0800)
committerRob Pike <r@golang.org>
Fri, 1 Mar 2013 20:30:09 +0000 (12:30 -0800)
commit749082e2a48719101606e7416b70fbdeea93a523
tree1280d474aadb29cc90e83d83f81adf55f82e9874
parent80d2eac14d973e672d8d60780c67283fcc58d933
cmd/vet: use go/printer to pretty-print expressions in printf messages
Fixes #4945.
Most examples in this issue now better, but #10 is incomplete and I'm not
certain how to reproduce it. It actually looks like a go/types problem, since
the type being reported is coming directly from that package.
Please reopen the issue if you disagree.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/7448046
src/cmd/vet/main.go
src/cmd/vet/print.go
src/cmd/vet/test_print.go