From: Yves Junqueira Date: Fri, 21 Sep 2012 19:54:31 +0000 (+1000) Subject: [release-branch.go1] text/template: fix range example. X-Git-Tag: go1.0.3~104 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=625dea7cba1325e64a108f1e1a902ab39c0cf52e;p=gostls13.git [release-branch.go1] text/template: fix range example. ««« backport c37d3a28f6b0 text/template: fix range example. R=r CC=adg, gobot, golang-dev https://golang.org/cl/6449096 »»» --- diff --git a/src/pkg/text/template/doc.go b/src/pkg/text/template/doc.go index aa50ab97f6..4a1682d97a 100644 --- a/src/pkg/text/template/doc.go +++ b/src/pkg/text/template/doc.go @@ -198,7 +198,7 @@ If a "range" action initializes a variable, the variable is set to the successive elements of the iteration. Also, a "range" may declare two variables, separated by a comma: - $index, $element := pipeline + range $index, $element := pipeline in which case $index and $element are set to the successive values of the array/slice index or map key and element, respectively. Note that if there is