From a28e2e7e30b6336ffe2d2f1f854d5032d6807052 Mon Sep 17 00:00:00 2001 From: Sun Hongliang Date: Fri, 6 May 2016 10:17:03 +0800 Subject: [PATCH] fix typos in swarm/cluster.go Signed-off-by: Sun Hongliang --- cluster/swarm/cluster.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cluster/swarm/cluster.go b/cluster/swarm/cluster.go index ab87ef1ce0..edc34ca0bd 100644 --- a/cluster/swarm/cluster.go +++ b/cluster/swarm/cluster.go @@ -824,7 +824,7 @@ func (c *Cluster) listEngines() []*cluster.Engine { return out } -// TotalMemory return the total memory of the cluster +// TotalMemory returns the total memory of the cluster func (c *Cluster) TotalMemory() int64 { var totalMemory int64 for _, engine := range c.engines { @@ -833,7 +833,7 @@ func (c *Cluster) TotalMemory() int64 { return totalMemory } -// TotalCpus return the total memory of the cluster +// TotalCpus returns the total memory of the cluster func (c *Cluster) TotalCpus() int64 { var totalCpus int64 for _, engine := range c.engines { @@ -891,7 +891,7 @@ func (c *Cluster) RANDOMENGINE() (*cluster.Engine, error) { return c.engines[nodes[0].ID], nil } -// RenameContainer rename a container +// RenameContainer renames a container func (c *Cluster) RenameContainer(container *cluster.Container, newName string) error { // check new name whether available if !c.checkNameUniqueness(newName) { @@ -903,7 +903,7 @@ func (c *Cluster) RenameContainer(container *cluster.Container, newName string) return err } -// BuildImage build an image +// BuildImage builds an image func (c *Cluster) BuildImage(buildImage *types.ImageBuildOptions, out io.Writer) error { c.scheduler.Lock() @@ -932,7 +932,7 @@ func (c *Cluster) BuildImage(buildImage *types.ImageBuildOptions, out io.Writer) return nil } -// TagImage tag an image +// TagImage tags an image func (c *Cluster) TagImage(IDOrName string, repo string, tag string, force bool) error { c.RLock() defer c.RUnlock()