From b3caa2ba3ca1591f7545a78c0010103ad8376409 Mon Sep 17 00:00:00 2001 From: Yves Junqueira Date: Mon, 6 Aug 2012 20:40:43 -0700 Subject: [PATCH] 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.48.1