Skip to content

Commit

Permalink
fix typo (#1829)
Browse files Browse the repository at this point in the history
  • Loading branch information
jjmengze authored Jul 22, 2021
1 parent 54ef62f commit 704212e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ func ExampleClient_Watch() {
// Actual opperation (local in optimistic lock).
n++

// Operation is commited only if the watched keys remain unchanged.
// Operation is committed only if the watched keys remain unchanged.
_, err = tx.TxPipelined(ctx, func(pipe redis.Pipeliner) error {
pipe.Set(ctx, key, n, 0)
return nil
Expand Down

0 comments on commit 704212e

Please sign in to comment.