aboutsummaryrefslogtreecommitdiff
path: root/test/chan
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2011-02-09 14:23:01 -0800
committerRob Pike <r@golang.org>2011-02-09 14:23:01 -0800
commitfb9e37cd9bc9fcb3c8a325867ef843b2e23d1853 (patch)
treecc71a7f0d37ed3dae6cb12d7b1327c189f66b60a /test/chan
parent2a81292ac35a1a71d64f28150c96e57b74f882d3 (diff)
downloadgo-fb9e37cd9bc9fcb3c8a325867ef843b2e23d1853.tar.gz
go-fb9e37cd9bc9fcb3c8a325867ef843b2e23d1853.zip
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
Diffstat (limited to 'test/chan')
-rw-r--r--test/chan/select5.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/chan/select5.go b/test/chan/select5.go
index 0678b8dab6..e7ca9e015c 100644
--- a/test/chan/select5.go
+++ b/test/chan/select5.go
@@ -49,7 +49,7 @@ func main() {
}
func run(t *template.Template, a interface{}, out io.Writer) {
- if err := t.Execute(a, out); err != nil {
+ if err := t.Execute(out, a); err != nil {
panic(err)
}
}