Skip to content

Commit

Permalink
Update walkstruct.go
Browse files Browse the repository at this point in the history
Co-authored-by: David Sharnoff <[email protected]>
  • Loading branch information
suqin-haha and muir committed Aug 23, 2024
1 parent 729c98a commit 026c49d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion walkstruct.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func doWalkStructElements(t reflect.Type, path []int, f func(reflect.StructField
// the return value.
//
// A special error return value, [DoNotRecurseSignalErr] is not considered an error (it will
// not become the return value, and it does not stop iteration) but it will stop recursion if returned
// not become the return value, and it does not stop iteration) but it will prevent recursion if returned
// on a field that is itself a struct.
func WalkStructElementsWithError(t reflect.Type, f func(reflect.StructField) error) error {
if t.Kind() == reflect.Struct {
Expand Down

0 comments on commit 026c49d

Please sign in to comment.