mirror of https://github.com/go-redis/redis.git
Fix code typo in README sample code
Earlier implementation will result in exception: "assignment mismatch: 2 variables but client.baseClient.Do returns 1 values"
This commit is contained in:
parent
7247939b32
commit
bf7ed09c10
|
@ -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()
|
vals, err := client.Eval("return {KEYS[1],ARGV[1]}", []string{"key"}, "hello").Result()
|
||||||
|
|
||||||
// custom command
|
// custom command
|
||||||
res, err := client.Do("set", "key", "value")
|
res, err := client.Do("set", "key", "value").Result()
|
||||||
```
|
```
|
||||||
|
|
||||||
## See also
|
## See also
|
||||||
|
|
Loading…
Reference in New Issue