Skip to content

Commit 041fb6d

Browse files
authored
all: Fix Go documentation none of typos in OneOf validators (#90)
1 parent 32dc877 commit 041fb6d

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

float64validator/one_of.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ func (v oneOfValidator) ValidateFloat64(ctx context.Context, request validator.F
4646
}
4747

4848
// OneOf checks that the float64 held in the attribute
49-
// is none of the given `values`.
49+
// is one of the given `values`.
5050
func OneOf(values ...float64) validator.Float64 {
5151
frameworkValues := make([]types.Float64, 0, len(values))
5252

int64validator/one_of.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ func (v oneOfValidator) ValidateInt64(ctx context.Context, request validator.Int
4646
}
4747

4848
// OneOf checks that the Int64 held in the attribute
49-
// is none of the given `values`.
49+
// is one of the given `values`.
5050
func OneOf(values ...int64) validator.Int64 {
5151
frameworkValues := make([]types.Int64, 0, len(values))
5252

numbervalidator/one_of.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ func (v oneOfValidator) ValidateNumber(ctx context.Context, request validator.Nu
4747
}
4848

4949
// OneOf checks that the Number held in the attribute
50-
// is none of the given `values`.
50+
// is one of the given `values`.
5151
func OneOf(values ...*big.Float) validator.Number {
5252
frameworkValues := make([]types.Number, 0, len(values))
5353

stringvalidator/one_of.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ func (v oneOfValidator) ValidateString(ctx context.Context, request validator.St
4646
}
4747

4848
// OneOf checks that the String held in the attribute
49-
// is none of the given `values`.
49+
// is one of the given `values`.
5050
func OneOf(values ...string) validator.String {
5151
frameworkValues := make([]types.String, 0, len(values))
5252

stringvalidator/one_of_case_insensitive.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ func (v oneOfCaseInsensitiveValidator) ValidateString(ctx context.Context, reque
4747
}
4848

4949
// OneOfCaseInsensitive checks that the String held in the attribute
50-
// is none of the given `values`.
50+
// is one of the given `values`.
5151
func OneOfCaseInsensitive(values ...string) validator.String {
5252
frameworkValues := make([]types.String, 0, len(values))
5353

0 commit comments

Comments
 (0)