Skip to content

Commit 0ea3987

Browse files
authored
Merge pull request kubernetes#93785 from SataQiu/fix-comment-20200807
Fix incorrect comment in runtime ObjectKind interface
2 parents 88512be + beec427 commit 0ea3987

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

staging/src/k8s.io/apimachinery/pkg/runtime/schema/interfaces.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ type ObjectKind interface {
2323
// SetGroupVersionKind sets or clears the intended serialized kind of an object. Passing kind nil
2424
// should clear the current setting.
2525
SetGroupVersionKind(kind GroupVersionKind)
26-
// GroupVersionKind returns the stored group, version, and kind of an object, or nil if the object does
27-
// not expose or provide these fields.
26+
// GroupVersionKind returns the stored group, version, and kind of an object, or an empty struct
27+
// if the object does not expose or provide these fields.
2828
GroupVersionKind() GroupVersionKind
2929
}
3030

0 commit comments

Comments
 (0)