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:
Rob Pike 2011-02-09 14:23:01 -08:00
parent 2a81292ac3
commit fb9e37cd9b
12 changed files with 25 additions and 25 deletions

View file

@ -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())
}