Skip to content

Commit e5a286e

Browse files
committed
Fix incorrect godoc on GetFrom
Signed-off-by: Chris Tarazi <[email protected]>
1 parent b84068c commit e5a286e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

value/reflectcache.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ func (f *FieldCacheEntry) CanOmit(fieldVal reflect.Value) bool {
7070
return f.isOmitEmpty && (safeIsNil(fieldVal) || isZero(fieldVal))
7171
}
7272

73-
// GetUsing returns the field identified by this FieldCacheEntry from the provided struct.
73+
// GetFrom returns the field identified by this FieldCacheEntry from the provided struct.
7474
func (f *FieldCacheEntry) GetFrom(structVal reflect.Value) reflect.Value {
7575
// field might be nested within 'inline' structs
7676
for _, elem := range f.fieldPath {

0 commit comments

Comments
 (0)