field: fix doc typo
This commit is contained in:
parent
5e0c20298b
commit
548248a457
4
field.go
4
field.go
@ -57,8 +57,8 @@ func (f *Field) Field(name string) *Field {
|
||||
}
|
||||
|
||||
// Field returns the field from a nested struct. The boolean returns true if
|
||||
// the field was not found. It panics if the nested struct is not exported or
|
||||
// if the field was not found.
|
||||
// the field was found. It panics if the nested struct is not exported or if
|
||||
// the field was not found.
|
||||
func (f *Field) FieldOk(name string) (*Field, bool) {
|
||||
v := strctVal(f.value.Interface())
|
||||
t := v.Type()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user