From 7bbc5e2a193230a0bcd52243ccbbd6cd3245caa2 Mon Sep 17 00:00:00 2001 From: Dan McPherson Date: Mon, 28 Jul 2014 15:15:50 +0200 Subject: [PATCH] Fixing typos --- pkg/apiserver/apiserver.go | 2 +- pkg/apiserver/apiserver_test.go | 2 +- pkg/proxy/proxier.go | 2 +- .../src/github.com/fsouza/go-dockerclient/event_test.go | 2 +- .../src/github.com/google/cadvisor/client/client_test.go | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pkg/apiserver/apiserver.go b/pkg/apiserver/apiserver.go index cc443707c41eb..4de04026e22ef 100644 --- a/pkg/apiserver/apiserver.go +++ b/pkg/apiserver/apiserver.go @@ -366,7 +366,7 @@ func (server *APIServer) readBody(req *http.Request) ([]byte, error) { } // finishReq finishes up a request, waiting until the operation finishes or, after a timeout, creating an -// Operation to recieve the result and returning its ID down the writer. +// Operation to receive the result and returning its ID down the writer. func (server *APIServer) finishReq(out <-chan interface{}, sync bool, timeout time.Duration, w http.ResponseWriter) { op := server.ops.NewOperation(out) if sync { diff --git a/pkg/apiserver/apiserver_test.go b/pkg/apiserver/apiserver_test.go index d9fb85a3affd3..e2d5784086878 100644 --- a/pkg/apiserver/apiserver_test.go +++ b/pkg/apiserver/apiserver_test.go @@ -82,7 +82,7 @@ type SimpleRESTStorage struct { requestedID string // If non-nil, called inside the WorkFunc when answering update, delete, create. - // obj recieves the original input to the update, delete, or create call. + // obj receives the original input to the update, delete, or create call. injectedFunction func(obj interface{}) (returnObj interface{}, err error) } diff --git a/pkg/proxy/proxier.go b/pkg/proxy/proxier.go index a7822e56a296d..a9c4ddc88fe25 100644 --- a/pkg/proxy/proxier.go +++ b/pkg/proxy/proxier.go @@ -121,7 +121,7 @@ func (proxier Proxier) addServiceCommon(service string, l net.Listener) { go proxier.AcceptHandler(service, l) } -// OnUpdate recieves update notices for the updated services and start listening newly added services. +// OnUpdate receives update notices for the updated services and start listening newly added services. // It implements "github.com/GoogleCloudPlatform/kubernetes/pkg/proxy/config".ServiceConfigHandler.OnUpdate. func (proxier Proxier) OnUpdate(services []api.Service) { glog.Infof("Received update notice: %+v", services) diff --git a/third_party/src/github.com/fsouza/go-dockerclient/event_test.go b/third_party/src/github.com/fsouza/go-dockerclient/event_test.go index cb54f4ae925a8..bf498d3cf0e06 100644 --- a/third_party/src/github.com/fsouza/go-dockerclient/event_test.go +++ b/third_party/src/github.com/fsouza/go-dockerclient/event_test.go @@ -53,7 +53,7 @@ func TestEventListeners(t *testing.T) { for { select { case msg := <-listener: - t.Logf("Recieved: %s", *msg) + t.Logf("Received: %s", *msg) count++ err = checkEvent(count, msg) if err != nil { diff --git a/third_party/src/github.com/google/cadvisor/client/client_test.go b/third_party/src/github.com/google/cadvisor/client/client_test.go index f8016f178f84b..450cb15381b29 100644 --- a/third_party/src/github.com/google/cadvisor/client/client_test.go +++ b/third_party/src/github.com/google/cadvisor/client/client_test.go @@ -49,10 +49,10 @@ func cadvisorTestClient(path string, expectedPostObj, expectedPostObjEmpty, repl decoder := json.NewDecoder(r.Body) err := decoder.Decode(expectedPostObjEmpty) if err != nil { - t.Errorf("Recieved invalid object: %v", err) + t.Errorf("Received invalid object: %v", err) } if !reflect.DeepEqual(expectedPostObj, expectedPostObjEmpty) { - t.Errorf("Recieved unexpected object: %+v", expectedPostObjEmpty) + t.Errorf("Received unexpected object: %+v", expectedPostObjEmpty) } } encoder := json.NewEncoder(w)