mirror of https://github.com/go-redis/redis.git
Merge pull request #669 from mattkelly/fix-quickstart-grammar
Fix grammar in quickstart
This commit is contained in:
commit
03c0c1b43c
|
@ -66,14 +66,14 @@ func ExampleClient() {
|
|||
|
||||
val2, err := client.Get("key2").Result()
|
||||
if err == redis.Nil {
|
||||
fmt.Println("key2 does not exists")
|
||||
fmt.Println("key2 does not exist")
|
||||
} else if err != nil {
|
||||
panic(err)
|
||||
} else {
|
||||
fmt.Println("key2", val2)
|
||||
}
|
||||
// Output: key value
|
||||
// key2 does not exists
|
||||
// key2 does not exist
|
||||
}
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in New Issue