Browse Source

Merge pull request #5377 from purpleidea/bug/typos

clientv3: fix typos
Gyu-Ho Lee 9 years ago
parent
commit
86c85b88ad
2 changed files with 2 additions and 2 deletions
  1. 1 1
      clientv3/kv.go
  2. 1 1
      clientv3/watch.go

+ 1 - 1
clientv3/kv.go

@@ -60,7 +60,7 @@ type KV interface {
 	// Do is useful when creating arbitrary operations to be issued at a
 	// later time; the user can range over the operations, calling Do to
 	// execute them. Get/Put/Delete, on the other hand, are best suited
-	// for when the	operation should be issued at the time of declaration.
+	// for when the operation should be issued at the time of declaration.
 	Do(ctx context.Context, op Op) (OpResponse, error)
 
 	// Txn creates a transaction.

+ 1 - 1
clientv3/watch.go

@@ -39,7 +39,7 @@ type Watcher interface {
 	// through the returned channel.
 	// If the watch is slow or the required rev is compacted, the watch request
 	// might be canceled from the server-side and the chan will be closed.
-	// 'opts' can be: 'WithRev' and/or 'WitchPrefix'.
+	// 'opts' can be: 'WithRev' and/or 'WithPrefix'.
 	Watch(ctx context.Context, key string, opts ...OpOption) WatchChan
 
 	// Close closes the watcher and cancels all watch requests.