Skip to content

Commit

Permalink
Fix typos in Client.Watch documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
yansal authored Feb 13, 2019
1 parent b3d3923 commit e970ae1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ func (c *Client) newTx() *Tx {
return &tx
}

// Watch prepares a transcaction and marks the keys to be watched
// Watch prepares a transaction and marks the keys to be watched
// for conditional execution if there are any keys.
//
// The transaction is automatically closed when the fn exits.
// The transaction is automatically closed when fn exits.
func (c *Client) Watch(fn func(*Tx) error, keys ...string) error {
tx := c.newTx()
if len(keys) > 0 {
Expand Down

0 comments on commit e970ae1

Please sign in to comment.