]> Cypherpunks repositories - gostls13.git/commit
exp/template: fix bug in argument evaluation.
authorRob Pike <r@golang.org>
Mon, 11 Jul 2011 08:06:24 +0000 (18:06 +1000)
committerRob Pike <r@golang.org>
Mon, 11 Jul 2011 08:06:24 +0000 (18:06 +1000)
commitd366c369450991ad9d942fc5aa3ea7e6c99e40a0
tree1d1f023264e48e3fe22cee7245476e51c4058963
parent3c6a7b3fc50a391f939308b522ac79e6ac79990b
exp/template: fix bug in argument evaluation.
Must keep dot and the receiver separate - variables broke that symmetry.
Also clean up function invocation and rename "data" to "dot" for clarity.

R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/4678048
src/pkg/exp/template/exec.go
src/pkg/exp/template/exec_test.go