Commit b3caa2ba authored by Yves Junqueira's avatar Yves Junqueira Committed by Rob Pike

text/template: fix range example.

R=r
CC=adg, gobot, golang-dev
https://golang.org/cl/6449096
parent 5530a426
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment