mirror of
https://github.com/redis/go-redis.git
synced 2025-10-29 05:29:22 +03:00
Typos.
This commit is contained in:
10
README.md
10
README.md
@@ -32,14 +32,14 @@ Let's start with connecting to Redis:
|
|||||||
|
|
||||||
Then we can start sending commands:
|
Then we can start sending commands:
|
||||||
|
|
||||||
set := client.Set("foo", "bar");
|
set := client.Set("foo", "bar");
|
||||||
if err := set.Err(); err != nil {
|
if err := set.Err(); err != nil {
|
||||||
panic(set.Err())
|
panic(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
get := client.Get("foo")
|
get := client.Get("foo")
|
||||||
if err := get.Err(); err != nil {
|
if err := get.Err(); err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
fmt.Println(get.Val())
|
fmt.Println(get.Val())
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user