Fix docstring for InfoForObejct func

This commit is contained in:
hurf 2015-08-24 21:46:49 +08:00
parent 9ad982ef77
commit 5bec41d0b6

View File

@ -87,7 +87,7 @@ func (m *Mapper) InfoForData(data []byte, source string) (*Info, error) {
}, nil
}
// InfoForData creates an Info object for the given Object. An error is returned
// InfoForObject creates an Info object for the given Object. An error is returned
// if the object cannot be introspected. Name and namespace will be set into Info
// if the mapping's MetadataAccessor can retrieve them.
func (m *Mapper) InfoForObject(obj runtime.Object) (*Info, error) {