Skip to content

Commit bf7ed09

Browse files
authored
Fix code typo in README sample code
Earlier implementation will result in exception: "assignment mismatch: 2 variables but client.baseClient.Do returns 1 values"
1 parent 7247939 commit bf7ed09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ vals, err := client.ZInterStore("out", redis.ZStore{Weights: []int64{2, 3}}, "zs
109109
vals, err := client.Eval("return {KEYS[1],ARGV[1]}", []string{"key"}, "hello").Result()
110110

111111
// custom command
112-
res, err := client.Do("set", "key", "value")
112+
res, err := client.Do("set", "key", "value").Result()
113113
```
114114

115115
## See also

0 commit comments

Comments
 (0)