From bf7ed09c10ec7d204d712ebb7433b67277de05e3 Mon Sep 17 00:00:00 2001 From: Xiaodong Date: Thu, 3 Oct 2019 23:52:48 +0800 Subject: [PATCH] Fix code typo in README sample code Earlier implementation will result in exception: "assignment mismatch: 2 variables but client.baseClient.Do returns 1 values" --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5aab4d88..c7a77829 100644 --- a/README.md +++ b/README.md @@ -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