text/template: {{range}} docs mention sorting "comparable" map keys, should say "ordered" instead #34147
Labels
Documentation
FrozenDueToAge
help wanted
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
What did you do?
Read package docs for
{{range pipeline}}
:https://golang.org/pkg/text/template/#hdr-Actions
What did you expect to see?
Map keys of an ordered type are visited in sorted key order.
What did you see instead?
Map keys of a comparable type are visited in sorted key order:
The spec defines comparable and ordered types as:
https://golang.org/ref/spec#Comparison_operators
The text was updated successfully, but these errors were encountered: