Add another comment for reference

This commit is contained in:
James Bardin 2017-01-09 09:43:45 -05:00
parent 1cec04b8a7
commit ba60fd12ae
1 changed files with 4 additions and 0 deletions

View File

@ -43,6 +43,10 @@ func expandArray(m map[string]string, prefix string) []interface{} {
panic(err) 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{} keySet := map[int]bool{}
for k := range m { for k := range m {
if !strings.HasPrefix(k, prefix+".") { if !strings.HasPrefix(k, prefix+".") {