mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Fixed typos in comments
This commit is contained in:
parent
65d132a3ee
commit
34924af63d
@ -128,7 +128,7 @@ func (f *FakeControllerSource) List() (runtime.Object, error) {
|
|||||||
for _, obj := range f.items {
|
for _, obj := range f.items {
|
||||||
// Must make a copy to allow clients to modify the object.
|
// Must make a copy to allow clients to modify the object.
|
||||||
// Otherwise, if they make a change and write it back, they
|
// Otherwise, if they make a change and write it back, they
|
||||||
// will inadvertantly change the our canonical copy (in
|
// will inadvertently change the our canonical copy (in
|
||||||
// addition to racing with other clients).
|
// addition to racing with other clients).
|
||||||
objCopy, err := conversion.DeepCopy(obj)
|
objCopy, err := conversion.DeepCopy(obj)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -164,7 +164,7 @@ func (f *FakeControllerSource) Watch(resourceVersion string) (watch.Interface, e
|
|||||||
for _, c := range f.changes[rc:] {
|
for _, c := range f.changes[rc:] {
|
||||||
// Must make a copy to allow clients to modify the
|
// Must make a copy to allow clients to modify the
|
||||||
// object. Otherwise, if they make a change and write
|
// object. Otherwise, if they make a change and write
|
||||||
// it back, they will inadvertantly change the our
|
// it back, they will inadvertently change the our
|
||||||
// canonical copy (in addition to racing with other
|
// canonical copy (in addition to racing with other
|
||||||
// clients).
|
// clients).
|
||||||
objCopy, err := conversion.DeepCopy(c.Object)
|
objCopy, err := conversion.DeepCopy(c.Object)
|
||||||
|
Loading…
Reference in New Issue
Block a user