Skip to content

Commit

Permalink
Fix code typo in README sample code
Browse files Browse the repository at this point in the history
Earlier implementation will result in exception:
"assignment mismatch: 2 variables but client.baseClient.Do returns 1 values"
  • Loading branch information
XD-DENG authored Oct 3, 2019
1 parent 7247939 commit bf7ed09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ vals, err := client.ZInterStore("out", redis.ZStore{Weights: []int64{2, 3}}, "zs
vals, err := client.Eval("return {KEYS[1],ARGV[1]}", []string{"key"}, "hello").Result()

// custom command
res, err := client.Do("set", "key", "value")
res, err := client.Do("set", "key", "value").Result()
```

## See also
Expand Down

0 comments on commit bf7ed09

Please sign in to comment.