aboutsummaryrefslogtreecommitdiff
path: root/src/html
diff options
context:
space:
mode:
authorSamuel Tan <samueltan@google.com>2017-12-07 22:18:50 -0800
committerIan Lance Taylor <iant@golang.org>2017-12-08 13:41:02 +0000
commitd42826a0f41c18aeb88b6288c27fa27c62dbe384 (patch)
tree5ffd0956567c78cc502bd148750ba7c108ba8b81 /src/html
parentf72196647e017e834f65dc7264b844e0a2760490 (diff)
downloadgo-d42826a0f41c18aeb88b6288c27fa27c62dbe384.tar.xz
html/template: fix typo in TestOrphanedTemplate error message
This error message should reference t2, not t1. Change-Id: I2e42b8335ca9367a1fb7f76c38a1bcf8f32a2bf3 Reviewed-on: https://go-review.googlesource.com/82816 Reviewed-by: Gabriel Aszalos <gabriel.aszalos@gmail.com> Reviewed-by: Ian Lance Taylor <iant@golang.org> Run-TryBot: Gabriel Aszalos <gabriel.aszalos@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/html')
-rw-r--r--src/html/template/escape_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/html/template/escape_test.go b/src/html/template/escape_test.go
index 2312c9c1c3..bd075661c6 100644
--- a/src/html/template/escape_test.go
+++ b/src/html/template/escape_test.go
@@ -1918,7 +1918,7 @@ func TestOrphanedTemplate(t *testing.T) {
}
b.Reset()
if err := t2.Execute(&b, nil); err != nil {
- t.Fatalf("error executing t1: %s", err)
+ t.Fatalf("error executing t2: %s", err)
}
const want = "bar"
if got := b.String(); got != want {