From 625dea7cba1325e64a108f1e1a902ab39c0cf52e Mon Sep 17 00:00:00 2001 From: Yves Junqueira Date: Sat, 22 Sep 2012 05:54:31 +1000 Subject: [PATCH] [release-branch.go1] text/template: fix range example. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit ««« backport c37d3a28f6b0 text/template: fix range example. R=r CC=adg, gobot, golang-dev https://golang.org/cl/6449096 »»» --- src/pkg/text/template/doc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.50.0