Skip to content

Commit

Permalink
docs: correct the format error of the url in 'Connecting via a redis …
Browse files Browse the repository at this point in the history
…url' section (#2789)

* docs: correct the format error of the url in 'Connecting via a redis url' section

* docs: change secret to password in redis url exmaple

---------

Co-authored-by: ofekshenawa <104765379+ofekshenawa@users.noreply.github.com>
  • Loading branch information
x1nchen and ofekshenawa committed Dec 17, 2023
1 parent 86c68be commit 716906a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ import (
var ctx = context.Background()

func ExampleClient() {
url := "redis://localhost:6379?password=hello&protocol=3"
url := "redis://user:password@localhost:6379/0?protocol=3"
opts, err := redis.ParseURL(url)
if err != nil {
panic(err)
Expand Down

0 comments on commit 716906a

Please sign in to comment.