mirror of
https://github.com/redis/go-redis.git
synced 2025-04-17 20:17:02 +03:00
Fix grammar in ExampleClient
This commit is contained in:
parent
03c0c1b43c
commit
bdbad50f7e
@ -96,14 +96,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
|
||||
}
|
||||
|
||||
func ExampleClient_Set() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user