瀏覽代碼

fix typos

Victor Vieux 11 年之前
父節點
當前提交
596facd124
共有 3 個文件被更改,包括 3 次插入3 次删除
  1. 1 1
      runtime.go
  2. 1 1
      runtime_test.go
  3. 1 1
      server.go

+ 1 - 1
runtime.go

@@ -326,7 +326,7 @@ func (runtime *Runtime) Create(config *Config, name string) (*Container, []strin
 	if config.PortSpecs != nil {
 		for _, p := range config.PortSpecs {
 			if strings.Contains(p, ":") {
-				warnings = append(warnings, "The mapping to a public ports on your host has been deprecated. Use -p to publish the ports.")
+				warnings = append(warnings, "The mapping to public ports on your host has been deprecated. Use -p to publish the ports.")
 				break
 			}
 		}

+ 1 - 1
runtime_test.go

@@ -272,7 +272,7 @@ func TestRuntimeCreate(t *testing.T) {
 	if err != nil {
 		t.Fatal(err)
 	}
-	if warnings == nil {
+	if warnings == nil || len(warnings) != 1 {
 		t.Error("Expected a warning, got none")
 	}
 }

+ 1 - 1
server.go

@@ -90,7 +90,7 @@ func (srv *Server) ContainerKill(name string, sig int) error {
 		} else {
 			// Otherwise, just send the requested signal
 			if err := container.kill(sig); err != nil {
-				return fmt.Errorf("Cannot kil container %s: %s", name, err)
+				return fmt.Errorf("Cannot kill container %s: %s", name, err)
 			}
 			// FIXME: Add event for signals
 		}