Browse Source

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.
Gyu-Ho Lee 10 years ago
parent
commit
c2dcf7431e
3 changed files with 3 additions and 3 deletions
  1. 1 1
      etcdserver/server.go
  2. 1 1
      store/node.go
  3. 1 1
      store/store.go

+ 1 - 1
etcdserver/server.go

@@ -116,7 +116,7 @@ type Server interface {
 	// ErrIDNotFound if member ID is not in the cluster.
 	// ErrIDNotFound if member ID is not in the cluster.
 	RemoveMember(ctx context.Context, id uint64) error
 	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.
 	// return ErrIDNotFound if the member ID does not exist.
 	UpdateMember(ctx context.Context, updateMemb Member) error
 	UpdateMember(ctx context.Context, updateMemb Member) error
 
 

+ 1 - 1
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.
 // 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 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
 // error will be returned
 func (n *node) Add(child *node) *etcdErr.Error {
 func (n *node) Add(child *node) *etcdErr.Error {
 	if !n.IsDir() {
 	if !n.IsDir() {

+ 1 - 1
store/store.go

@@ -528,7 +528,7 @@ func (s *store) internalCreate(nodePath string, dir bool, value string, unique,
 
 
 	n, _ := d.GetChild(nodeName)
 	n, _ := d.GetChild(nodeName)
 
 
-	// force will try to replace a existing file
+	// force will try to replace an existing file
 	if n != nil {
 	if n != nil {
 		if replace {
 		if replace {
 			if n.IsDir() {
 			if n.IsDir() {