Skip to content

Commit 6d8afac

Browse files
authored
Merge pull request #307 from hashicorp/appilon/fix-comments
fix doc/comments
2 parents 8088eea + 2dcd1d0 commit 6d8afac

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

helper/validation/list.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ func ValidateListUniqueStrings(i interface{}, k string) (warnings []string, erro
1111
return ListOfUniqueStrings(i, k)
1212
}
1313

14-
// ValidateListUniqueStrings is a ValidateFunc that ensures a list has no
14+
// ListOfUniqueStrings is a ValidateFunc that ensures a list has no
1515
// duplicate items in it. It's useful for when a list is needed over a set
1616
// because order matters, yet the items still need to be unique.
1717
func ListOfUniqueStrings(i interface{}, k string) (warnings []string, errors []error) {

helper/validation/network.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ func SingleIP() schema.SchemaValidateFunc {
1717
return IsIPAddress
1818
}
1919

20-
// IsIPAddress returns a SchemaValidateFunc which tests if the provided value is of type string and is a single IP (v4 or v6)
20+
// IsIPAddress is a SchemaValidateFunc which tests if the provided value is of type string and is a single IP (v4 or v6)
2121
func IsIPAddress(i interface{}, k string) (warnings []string, errors []error) {
2222
v, ok := i.(string)
2323
if !ok {
@@ -72,7 +72,7 @@ func IPRange() schema.SchemaValidateFunc {
7272
return IsIPv4Range
7373
}
7474

75-
// IsIPv4Range returns a SchemaValidateFunc which tests if the provided value is of type string, and in valid IP range
75+
// IsIPv4Range is a SchemaValidateFunc which tests if the provided value is of type string, and in valid IP range
7676
func IsIPv4Range(i interface{}, k string) (warnings []string, errors []error) {
7777
v, ok := i.(string)
7878
if !ok {

helper/validation/strings.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"github.com/hashicorp/terraform-plugin-sdk/helper/structure"
1111
)
1212

13-
// StringIsNotEmpty is a ValidateFunc that ensures a string is not empty or consisting entirely of whitespace characters
13+
// StringIsNotEmpty is a ValidateFunc that ensures a string is not empty
1414
func StringIsNotEmpty(i interface{}, k string) ([]string, []error) {
1515
v, ok := i.(string)
1616
if !ok {
@@ -24,7 +24,7 @@ func StringIsNotEmpty(i interface{}, k string) ([]string, []error) {
2424
return nil, nil
2525
}
2626

27-
// StringIsNotEmpty is a ValidateFunc that ensures a string is not empty or consisting entirely of whitespace characters
27+
// StringIsNotWhiteSpace is a ValidateFunc that ensures a string is not empty or consisting entirely of whitespace characters
2828
func StringIsNotWhiteSpace(i interface{}, k string) ([]string, []error) {
2929
v, ok := i.(string)
3030
if !ok {
@@ -52,7 +52,7 @@ func StringIsEmpty(i interface{}, k string) ([]string, []error) {
5252
return nil, nil
5353
}
5454

55-
// StringIsEmpty is a ValidateFunc that ensures a string is composed of entirely whitespace
55+
// StringIsWhiteSpace is a ValidateFunc that ensures a string is composed of entirely whitespace
5656
func StringIsWhiteSpace(i interface{}, k string) ([]string, []error) {
5757
v, ok := i.(string)
5858
if !ok {

0 commit comments

Comments
 (0)