Skip to content

Commit 2b5dcb9

Browse files
jar-baustinvalle
andauthored
Update boolvalidator/equals.go
Co-authored-by: Austin Valle <[email protected]>
1 parent 4f1d1e9 commit 2b5dcb9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

boolvalidator/equals.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ func (v equalsValidator) ValidateBool(ctx context.Context, req validator.BoolReq
4242
}
4343
}
4444

45-
// Equals checks that the Bool held in the attribute matches the
46-
// given `value`
45+
// Equals returns an AttributeValidator which ensures that the configured boolean attribute
46+
// matches the given `value`. Null (unconfigured) and unknown (known after apply) values are skipped.
4747
func Equals(value bool) validator.Bool {
4848
return equalsValidator{
4949
value: types.BoolValue(value),

0 commit comments

Comments
 (0)