From ba60fd12ae90e14f0df71e815ae1e1ea3908c56f Mon Sep 17 00:00:00 2001 From: James Bardin Date: Mon, 9 Jan 2017 09:43:45 -0500 Subject: [PATCH] Add another comment for reference --- flatmap/expand.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/flatmap/expand.go b/flatmap/expand.go index dfaf74e7b7..331357ff34 100644 --- a/flatmap/expand.go +++ b/flatmap/expand.go @@ -43,6 +43,10 @@ func expandArray(m map[string]string, prefix string) []interface{} { panic(err) } + // The Schema "Set" type stores its values in an array format, but using + // numeric hash values instead of ordinal keys. Take the set of keys + // regardless of value, and expand them in numeric order. + // See GH-11042 for more details. keySet := map[int]bool{} for k := range m { if !strings.HasPrefix(k, prefix+".") {