Skip to content

Commit 49a7ef1

Browse files
committed
comment updates
1 parent 7c44188 commit 49a7ef1

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

internal/testing/testtypes/stringwithsemanticequals.go

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import (
99

1010
"github.com/hashicorp/terraform-plugin-framework/attr"
1111
"github.com/hashicorp/terraform-plugin-framework/diag"
12-
"github.com/hashicorp/terraform-plugin-framework/types"
1312
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
1413
"github.com/hashicorp/terraform-plugin-go/tftypes"
1514
)
@@ -25,11 +24,11 @@ var (
2524
type StringTypeWithSemanticEquals struct {
2625
basetypes.StringType
2726

28-
// Will always return true for semantic equality
27+
// Will always return this boolean for semantic equality
2928
SemanticEquals bool
3029

31-
// Will only return semantic equality as true if the string matches this
32-
SemanticallyEqualTo types.String
30+
// Will only return semantic equality as true if the attr.Value matches this
31+
SemanticallyEqualTo attr.Value
3332

3433
SemanticEqualsDiagnostics diag.Diagnostics
3534
}
@@ -98,10 +97,10 @@ func (t StringTypeWithSemanticEquals) ValueType(ctx context.Context) attr.Value
9897
type StringValueWithSemanticEquals struct {
9998
basetypes.StringValue
10099

101-
// Will always return true for semantic equality
100+
// Will always return this boolean for semantic equality
102101
SemanticEquals bool
103102

104-
// Will only return semantic equality as true if the string matches this
103+
// Will only return semantic equality as true if the attr.Value matches this
105104
SemanticallyEqualTo attr.Value
106105

107106
SemanticEqualsDiagnostics diag.Diagnostics

0 commit comments

Comments
 (0)