diff options
author | Russ Cox <rsc@golang.org> | 2011-10-27 21:17:47 -0700 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2011-10-27 21:17:47 -0700 |
commit | 853c84631f1afda1672930e8e509beeb0e9d44f9 (patch) | |
tree | 70a99a72f96d629a1cc4ceb3eb0f4a5e6db6a576 | |
parent | c0a0fd6cf4f71dad402ee2c66407dbb18161dd05 (diff) | |
download | go-853c84631f1afda1672930e8e509beeb0e9d44f9.tar.gz go-853c84631f1afda1672930e8e509beeb0e9d44f9.zip |
template: do not use error as stringer
R=r
CC=golang-dev
https://golang.org/cl/5305069
-rw-r--r-- | src/pkg/template/exec_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/template/exec_test.go b/src/pkg/template/exec_test.go index 6c19f116b8..2d2b402942 100644 --- a/src/pkg/template/exec_test.go +++ b/src/pkg/template/exec_test.go @@ -98,7 +98,7 @@ var tVal = &T{ Empty3: []int{7, 8}, Empty4: &U{"UinEmpty"}, NonEmptyInterface: new(T), - Str: os.NewError("foozle"), + Str: bytes.NewBuffer([]byte("foozle")), PI: newInt(23), PSI: newIntSlice(21, 22, 23), Tmpl: Must(New("x").Parse("test template")), // "x" is the value of .X |