Skip to content

Commit 271abb3

Browse files
authored
Fix reference to parameter name in docs (#1400)
The docs still mentioned the old name of the parameter, which threw me a bit off, this PR just updates the comment. @go-playground/validator-maintainers
1 parent 79c42ad commit 271abb3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

struct_level.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ type StructLevel interface {
4646
//
4747
// NOTES:
4848
//
49-
// fieldName and altName get appended to the existing namespace that
50-
// validator is on. e.g. pass 'FirstName' or 'Names[0]' depending
51-
// on the nesting
49+
// fieldName and structFieldName get appended to the existing
50+
// namespace that validator is on. e.g. pass 'FirstName' or
51+
// 'Names[0]' depending on the nesting
5252
//
5353
// tag can be an existing validation tag or just something you make up
5454
// and process on the flip side it's up to you.

0 commit comments

Comments
 (0)