From 716906addaa475a699df1d26869db99128fb1e80 Mon Sep 17 00:00:00 2001 From: ccx Date: Sun, 17 Dec 2023 21:34:17 +0800 Subject: [PATCH] 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 <104765379+ofekshenawa@users.noreply.github.com> --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8965b915..b08330df 100644 --- a/README.md +++ b/README.md @@ -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)