Merge pull request #3525 from gyuho/master

etcdserver, store: fix grammars in comments (a->an existing)
This commit is contained in:
Xiang Li 2015-09-14 13:47:49 -07:00
commit d04382c30e
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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() {

View File

@ -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() {