]> Cypherpunks repositories - gostls13.git/commit
text/template: fix bug in pipelined variadics
authorRob Pike <r@golang.org>
Sat, 18 Oct 2014 18:22:05 +0000 (11:22 -0700)
committerRob Pike <r@golang.org>
Sat, 18 Oct 2014 18:22:05 +0000 (11:22 -0700)
commit1cd78eedd092c9ec10f1b5c626b8bcd0298e065f
tree7b7b86bf926e9920533392bb16723c4d782c5c0d
parent65dde1ed4b1c71fad6d2b106b779c5191e5f7cd7
text/template: fix bug in pipelined variadics
Simple bug in argument processing: The final arg may
be the pipeline value, in which case it gets bound to the
fixed argument section. The code got that wrong. Easy
to fix.

Fixes #8950.

LGTM=bradfitz
R=golang-codereviews, bradfitz
CC=golang-codereviews
https://golang.org/cl/161750043
src/text/template/exec.go
src/text/template/exec_test.go