From: Russ Cox Date: Fri, 28 Oct 2011 04:17:47 +0000 (-0700) Subject: template: do not use error as stringer X-Git-Tag: weekly.2011-11-01~30 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=853c84631f1afda1672930e8e509beeb0e9d44f9;p=gostls13.git template: do not use error as stringer R=r CC=golang-dev https://golang.org/cl/5305069 --- 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