etcdctl: fix typo in error message (Invaild to Invalid)

This commit is contained in:
Maxime Lahaye 2015-11-09 15:10:35 -06:00
parent 31601d494d
commit 735440e52d

View File

@ -65,7 +65,7 @@ func watchCommandFunc(c *cli.Context) {
// TODO: support start and end revision // TODO: support start and end revision
segs := strings.Split(l, " ") segs := strings.Split(l, " ")
if len(segs) != 2 { if len(segs) != 2 {
fmt.Fprintf(os.Stderr, "Invaild watch request format: use watch key or watchprefix prefix\n") fmt.Fprintf(os.Stderr, "Invalid watch request format: use watch key or watchprefix prefix\n")
continue continue
} }
@ -76,7 +76,7 @@ func watchCommandFunc(c *cli.Context) {
case "watchprefix": case "watchprefix":
r = &pb.WatchRequest{Prefix: []byte(segs[1])} r = &pb.WatchRequest{Prefix: []byte(segs[1])}
default: default:
fmt.Fprintf(os.Stderr, "Invaild watch request format: use watch key or watchprefix prefix\n") fmt.Fprintf(os.Stderr, "Invalid watch request format: use watch key or watchprefix prefix\n")
continue continue
} }