mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
template: reverse order of arguments to Execute
In line with other functions such as Fprintf, put the thing to be written first. Apologies for the breakages this is sure to cause. R=rsc, gri, adg, eds, r2, aam CC=golang-dev https://golang.org/cl/4169042
This commit is contained in:
parent
2a81292ac3
commit
fb9e37cd9b
12 changed files with 25 additions and 25 deletions
|
|
@ -83,7 +83,7 @@ func (server debugHTTP) ServeHTTP(w http.ResponseWriter, req *http.Request) {
|
|||
}
|
||||
server.Unlock()
|
||||
sort.Sort(services)
|
||||
err := debug.Execute(services, w)
|
||||
err := debug.Execute(w, services)
|
||||
if err != nil {
|
||||
fmt.Fprintln(w, "rpc: error executing template:", err.String())
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue