Skip to content

Commit

Permalink
Correct name in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Kieltyka committed Jun 9, 2015
1 parent eaab23e commit 6dda2d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reflectx/reflect.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ func (m *Mapper) FieldByName(v reflect.Value, name string) reflect.Value {
return FieldByIndexes(v, fi.Index)
}

// StructMapByName returns a slice of values corresponding to the slice of names
// FieldsByName returns a slice of values corresponding to the slice of names
// for the value. Panics if v's Kind is not Struct or v is not Indirectable
// to a struct Kind. Returns zero Value for each name not found.
func (m *Mapper) FieldsByName(v reflect.Value, names []string) []reflect.Value {
Expand Down

0 comments on commit 6dda2d0

Please sign in to comment.