1
0
mirror of https://github.com/golang/go synced 2024-11-12 03:00:22 -07:00

template: do not use error as stringer

R=r
CC=golang-dev
https://golang.org/cl/5305069
This commit is contained in:
Russ Cox 2011-10-27 21:17:47 -07:00
parent c0a0fd6cf4
commit 853c84631f

View File

@ -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