Browse Source

etcdctl: print "del" instead of "delete" in txn interactive mode

fanmin shi 8 years ago
parent
commit
bb0e144b43
1 changed files with 2 additions and 2 deletions
  1. 2 2
      etcdctl/ctlv3/command/txn_command.go

+ 2 - 2
etcdctl/ctlv3/command/txn_command.go

@@ -52,9 +52,9 @@ func txnCommandFunc(cmd *cobra.Command, args []string) {
 	txn := mustClientFromCmd(cmd).Txn(context.Background())
 	promptInteractive("compares:")
 	txn.If(readCompares(reader)...)
-	promptInteractive("success requests (get, put, delete):")
+	promptInteractive("success requests (get, put, del):")
 	txn.Then(readOps(reader)...)
-	promptInteractive("failure requests (get, put, delete):")
+	promptInteractive("failure requests (get, put, del):")
 	txn.Else(readOps(reader)...)
 
 	resp, err := txn.Commit()