We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8ee441 commit 165f47fCopy full SHA for 165f47f
example_test.go
@@ -122,13 +122,13 @@ func ExampleClient_Set() {
122
}
123
124
func ExampleClient_Incr() {
125
- if err := client.Incr("counter").Err(); err != nil {
+ result, err := client.Incr("counter").Result()
126
+ if err != nil {
127
panic(err)
128
129
- n, err := client.Get("counter").Int64()
130
- fmt.Println(n, err)
131
- // Output: 1 <nil>
+ fmt.Println(result)
+ // Output: 1
132
133
134
func ExampleClient_BLPop() {
0 commit comments