summaryrefslogtreecommitdiff
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
commitbd659a18441474f233cff51e0386aef72aabc2c3 (patch)
treef9896bc3fffea0218faffa2b75c1ae5c2d8a7143 /test/chan
parent90a2a37e57ccbee2091717ebd22afb960f938d04 (diff)
downloadgo-bd659a18441474f233cff51e0386aef72aabc2c3.tar.gz
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 http://codereview.appspot.com/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 0678b8dab..e7ca9e015 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)
}
}