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