Skip to content

Commit

Permalink
Fix typo in field extractor (splices -> slices) (#287)
Browse files Browse the repository at this point in the history
  • Loading branch information
bvwells committed Apr 28, 2020
1 parent 4ae5604 commit b4e7e96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tags/fieldextractor.go
Expand Up @@ -67,7 +67,7 @@ func reflectMessageTags(msg interface{}, existingMap map[string]interface{}, tag
if kind == reflect.Ptr && field.CanInterface() {
reflectMessageTags(field.Interface(), existingMap, tagName)
}
// In case of arrays/splices (repeated fields) go down to the concrete type.
// In case of arrays/slices (repeated fields) go down to the concrete type.
if kind == reflect.Array || kind == reflect.Slice {
if field.Len() == 0 {
continue
Expand Down

0 comments on commit b4e7e96

Please sign in to comment.