1
0
mirror of https://github.com/golang/go synced 2024-09-30 16:28:32 -06:00

cmd/callgraph: fix careless quoting bug

Change-Id: I809a2ea711bb1a516dfcf8abf5e4d26061b4daf0
Reviewed-on: https://go-review.googlesource.com/4230
Reviewed-by: Sameer Ajmani <sameer@golang.org>
This commit is contained in:
Alan Donovan 2015-02-09 10:45:08 -05:00
parent fa3649f71f
commit 159ae4d163

View File

@ -237,7 +237,7 @@ func doCallgraph(ctxt *build.Context, algo, format string, tests bool, args []st
case "graphviz":
before = "digraph callgraph {\n"
after = "}\n"
format = ` {{printf "%q" .Caller}} -> {{printf "%q" .Callee}}"`
format = ` {{printf "%q" .Caller}} -> {{printf "%q" .Callee}}`
}
tmpl, err := template.New("-format").Parse(format)