]> Cypherpunks repositories - gostls13.git/commitdiff
text/template: refer to sorted map keys as "ordered" not "comparable" in docs
authorMihai Borobocea <mihaibopublic@gmail.com>
Fri, 6 Sep 2019 17:30:51 +0000 (20:30 +0300)
committerRob Pike <r@golang.org>
Fri, 6 Sep 2019 21:22:26 +0000 (21:22 +0000)
Consistent with the spec's definition of "ordered" and "comparable".

Fixes #34147

Change-Id: Id13186df5343588d80eaebfeb23092596a846d51
Reviewed-on: https://go-review.googlesource.com/c/go/+/193840
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Rob Pike <r@golang.org>
src/text/template/doc.go

index dbffaa4958001de16712cff31dc7a909f3181483..22266143a6eca432bdec887a2af4a9b221b7b56d 100644 (file)
@@ -102,8 +102,8 @@ data, defined in detail in the corresponding sections that follow.
                If the value of the pipeline has length zero, nothing is output;
                otherwise, dot is set to the successive elements of the array,
                slice, or map and T1 is executed. If the value is a map and the
-               keys are of basic type with a defined order ("comparable"), the
-               elements will be visited in sorted key order.
+               keys are of basic type with a defined order, the elements will be
+               visited in sorted key order.
 
        {{range pipeline}} T1 {{else}} T0 {{end}}
                The value of the pipeline must be an array, slice, map, or channel.