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