Browse code

fix typos in several files

Signed-off-by: allencloud <allen.sun@daocloud.io>

allencloud authored on 2016/03/18 02:15:32
Showing 4 changed files
... ...
@@ -7,7 +7,7 @@ import (
7 7
 	"golang.org/x/net/context"
8 8
 )
9 9
 
10
-// getContainersByName inspects containers configuration and serializes it as json.
10
+// getContainersByName inspects container's configuration and serializes it as json.
11 11
 func (s *containerRouter) getContainersByName(ctx context.Context, w http.ResponseWriter, r *http.Request, vars map[string]string) error {
12 12
 	displaySize := httputils.BoolValue(r, "size")
13 13
 
... ...
@@ -109,7 +109,7 @@ func (daemon *Daemon) getInspectData(container *container.Container, size bool)
109 109
 	}
110 110
 
111 111
 	// we need this trick to preserve empty log driver, so
112
-	// container will use daemon defaults even if daemon change them
112
+	// container will use daemon defaults even if daemon changes them
113 113
 	if hostConfig.LogConfig.Type == "" {
114 114
 		hostConfig.LogConfig.Type = daemon.defaultLogConfig.Type
115 115
 	}
... ...
@@ -27,7 +27,7 @@ func isErrNoSuchProcess(err error) bool {
27 27
 	return ok
28 28
 }
29 29
 
30
-// ContainerKill send signal to the container
30
+// ContainerKill sends signal to the container
31 31
 // If no signal is given (sig 0), then Kill with SIGKILL and wait
32 32
 // for the container to exit.
33 33
 // If a signal is given, then just send it to the container and return.
... ...
@@ -241,7 +241,7 @@ func (daemon *Daemon) foldFilter(config *types.ContainerListOptions) (*listConte
241 241
 	}, nil
242 242
 }
243 243
 
244
-// includeContainerInList decides whether a containers should be include in the output or not based in the filter.
244
+// includeContainerInList decides whether a container should be included in the output or not based in the filter.
245 245
 // It also decides if the iteration should be stopped or not.
246 246
 func includeContainerInList(container *container.Container, ctx *listContext) iterationAction {
247 247
 	// Do not include container if it's in the list before the filter container.
... ...
@@ -366,7 +366,7 @@ func (daemon *Daemon) transformContainer(container *container.Container, ctx *li
366 366
 		ImageID: container.ImageID.String(),
367 367
 	}
368 368
 	if newC.Names == nil {
369
-		// Dead containers will often have no name, so make sure the response isn't  null
369
+		// Dead containers will often have no name, so make sure the response isn't null
370 370
 		newC.Names = []string{}
371 371
 	}
372 372