Skip to content

Commit de7bd47

Browse files
doc
Change-Id: If16c21bd933e22f55afe85f6aaf0891cd9a40ef9
1 parent fcb7d02 commit de7bd47

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/text/template/doc.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,15 +98,17 @@ data, defined in detail in the corresponding sections that follow.
9898
{{if pipeline}} T1 {{else}}{{if pipeline}} T0 {{end}}{{end}}
9999
100100
{{range pipeline}} T1 {{end}}
101-
The value of the pipeline must be an array, slice, map, or channel.
101+
The value of the pipeline must be an array, slice, map, iter.Seq,
102+
iter.Seq2 or channel.
102103
If the value of the pipeline has length zero, nothing is output;
103104
otherwise, dot is set to the successive elements of the array,
104105
slice, or map and T1 is executed. If the value is a map and the
105106
keys are of basic type with a defined order, the elements will be
106107
visited in sorted key order.
107108
108109
{{range pipeline}} T1 {{else}} T0 {{end}}
109-
The value of the pipeline must be an array, slice, map, or channel.
110+
The value of the pipeline must be an array, slice, map, iter.Seq,
111+
iter.Seq2 or channel.
110112
If the value of the pipeline has length zero, dot is unaffected and
111113
T0 is executed; otherwise, dot is set to the successive elements
112114
of the array, slice, or map and T1 is executed.

0 commit comments

Comments
 (0)