]> Cypherpunks.ru repositories - gostls13.git/commit
text/template: only unwrap final and/or value
authorIan Lance Taylor <iant@golang.org>
Tue, 5 Oct 2021 18:41:40 +0000 (11:41 -0700)
committerIan Lance Taylor <iant@golang.org>
Tue, 5 Oct 2021 21:22:16 +0000 (21:22 +0000)
commit8444a545e3d38c2e470df5035ef4b5a9365aaefc
treec2bc6a8dbca193af6b2327829116da9a963f426c
parent55e7f7e12d46292e130a3b48c86bac2a6e5a1739
text/template: only unwrap final and/or value

In the last CL I missed the fact that except for the final value the
code already unwraps the argument.

For #31103

Change-Id: Ic9099aeb50c6b3322fc14a90ac8026c1d8cb1698
Reviewed-on: https://go-review.googlesource.com/c/go/+/354091
Trust: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
src/text/template/exec.go
src/text/template/exec_test.go