From c2dcf7431e989963d1d216c2179a0ca70df83bae Mon Sep 17 00:00:00 2001 From: Gyu-Ho Lee Date: Mon, 14 Sep 2015 13:41:13 -0700 Subject: [PATCH] etcdserver, store: fix grammars in comments (a->an existing) I found some grammatical errors in comments. This pull request was submitted https://github.com/coreos/etcd/pull/3513. I am resubmitting following the correct guidlines. --- etcdserver/server.go | 2 +- store/node.go | 2 +- store/store.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/etcdserver/server.go b/etcdserver/server.go index 3fc94ff26..43d8266a2 100644 --- a/etcdserver/server.go +++ b/etcdserver/server.go @@ -116,7 +116,7 @@ type Server interface { // ErrIDNotFound if member ID is not in the cluster. RemoveMember(ctx context.Context, id uint64) error - // UpdateMember attempts to update a existing member in the cluster. It will + // UpdateMember attempts to update an existing member in the cluster. It will // return ErrIDNotFound if the member ID does not exist. UpdateMember(ctx context.Context, updateMemb Member) error diff --git a/store/node.go b/store/node.go index e41eec2aa..0ad9abd4c 100644 --- a/store/node.go +++ b/store/node.go @@ -183,7 +183,7 @@ func (n *node) GetChild(name string) (*node, *etcdErr.Error) { // Add function adds a node to the receiver node. // If the receiver is not a directory, a "Not A Directory" error will be returned. -// If there is a existing node with the same name under the directory, a "Already Exist" +// If there is an existing node with the same name under the directory, a "Already Exist" // error will be returned func (n *node) Add(child *node) *etcdErr.Error { if !n.IsDir() { diff --git a/store/store.go b/store/store.go index c925c62b3..93e2e6047 100644 --- a/store/store.go +++ b/store/store.go @@ -528,7 +528,7 @@ func (s *store) internalCreate(nodePath string, dir bool, value string, unique, n, _ := d.GetChild(nodeName) - // force will try to replace a existing file + // force will try to replace an existing file if n != nil { if replace { if n.IsDir() {