Skip to content

Commit 8425d43

Browse files
committed
docs(godoc): clarified methods using default validator
1 parent f8ddc47 commit 8425d43

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

validator.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,12 @@ func Default() Validator {
8484
return getGlobalValidator()
8585
}
8686

87-
// Register registers a validator method by name.
87+
// Register registers a validator method by name on the default validator.
8888
func Register(name string, validator core.ValidatorFn) {
8989
getGlobalValidator().Register(name, validator)
9090
}
9191

92-
// Validate validates fields of a structure, or structures of a map, slice or array.
92+
// Validate validates fields of a structure, or structures of a map, slice or array using the default validator.
9393
func Validate(value interface{}) core.ErrorList {
9494
return getGlobalValidator().Validate(value)
9595
}

0 commit comments

Comments
 (0)