瀏覽代碼

Don't use an interface{} where a string will do.

Caleb Spare 12 年之前
父節點
當前提交
887f509d1d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      commands.go

+ 1 - 1
commands.go

@@ -28,7 +28,7 @@ func (srv *Server) Name() string {
 // FIXME: Stop violating DRY by repeating usage here and in Subcmd declarations
 func (srv *Server) Help() string {
 	help := "Usage: docker COMMAND [arg...]\n\nA self-sufficient runtime for linux containers.\n\nCommands:\n"
-	for _, cmd := range [][]interface{}{
+	for _, cmd := range [][]string{
 		{"attach", "Attach to a running container"},
 		{"commit", "Create a new image from a container's changes"},
 		{"diff", "Inspect changes on a container's filesystem"},