Skip to content

Commit 716906a

Browse files
x1nchenofekshenawa
andauthored
docs: correct the format error of the url in 'Connecting via a redis 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 <[email protected]>
1 parent 86c68be commit 716906a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ import (
152152
var ctx = context.Background()
153153

154154
func ExampleClient() {
155-
url := "redis://localhost:6379?password=hello&protocol=3"
155+
url := "redis://user:password@localhost:6379/0?protocol=3"
156156
opts, err := redis.ParseURL(url)
157157
if err != nil {
158158
panic(err)

0 commit comments

Comments
 (0)