aboutsummaryrefslogtreecommitdiffhomepage
path: root/vendor/github.com/zclconf/go-cty/cty/map_type.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/zclconf/go-cty/cty/map_type.go')
-rw-r--r--vendor/github.com/zclconf/go-cty/cty/map_type.go10
1 files changed, 8 insertions, 2 deletions
diff --git a/vendor/github.com/zclconf/go-cty/cty/map_type.go b/vendor/github.com/zclconf/go-cty/cty/map_type.go
index ae9abae..82d36c6 100644
--- a/vendor/github.com/zclconf/go-cty/cty/map_type.go
+++ b/vendor/github.com/zclconf/go-cty/cty/map_type.go
@@ -33,8 +33,14 @@ func (t typeMap) Equals(other Type) bool {
33 return t.ElementTypeT.Equals(ot.ElementTypeT) 33 return t.ElementTypeT.Equals(ot.ElementTypeT)
34} 34}
35 35
36func (t typeMap) FriendlyName() string { 36func (t typeMap) FriendlyName(mode friendlyTypeNameMode) string {
37 return "map of " + t.ElementTypeT.FriendlyName() 37 elemName := t.ElementTypeT.friendlyNameMode(mode)
38 if mode == friendlyTypeConstraintName {
39 if t.ElementTypeT == DynamicPseudoType {
40 elemName = "any single type"
41 }
42 }
43 return "map of " + elemName
38} 44}
39 45
40func (t typeMap) ElementType() Type { 46func (t typeMap) ElementType() Type {