diff options
author | Mihai Borobocea <mihaibopublic@gmail.com> | 2019-09-06 20:30:51 +0300 |
---|---|---|
committer | Rob Pike <r@golang.org> | 2019-09-06 21:22:26 +0000 |
commit | 8a8cf5bf6d233c97180a6ef7e64d9c67a402470f (patch) | |
tree | 2921471f11fdcdaf009c5508b9dbe822a997f5b8 /src/text | |
parent | 5e43856aa9c3d17c79688415b1347650d711744b (diff) | |
download | go-8a8cf5bf6d233c97180a6ef7e64d9c67a402470f.tar.gz go-8a8cf5bf6d233c97180a6ef7e64d9c67a402470f.zip |
text/template: refer to sorted map keys as "ordered" not "comparable" in docs
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>
Diffstat (limited to 'src/text')
-rw-r--r-- | src/text/template/doc.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/text/template/doc.go b/src/text/template/doc.go index dbffaa4958..22266143a6 100644 --- a/src/text/template/doc.go +++ b/src/text/template/doc.go @@ -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. |