1
0
mirror of https://github.com/redis/go-redis.git synced 2025-08-10 11:03:00 +03:00

Merge pull request #669 from mattkelly/fix-quickstart-grammar

Fix grammar in quickstart
This commit is contained in:
Vladimir Mihailenco
2017-11-25 08:23:42 +02:00
committed by GitHub

View File

@@ -66,14 +66,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
} }
``` ```