Skip to content

Commit

Permalink
Fix typo in field extractor (splices -> slices) (#287) (#289)
Browse files Browse the repository at this point in the history
  • Loading branch information
bvwells authored Apr 29, 2020
1 parent 542dcc3 commit eb2c8a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion interceptors/tags/fieldextractor.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func reflectMessageTags(msg interface{}, existingMap map[string]string, tagName
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 eb2c8a6

Please sign in to comment.