From ee46f0b5084461978432aa20df003ac52500b0f0 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Sat, 10 Jun 2023 17:42:54 -0700 Subject: [PATCH] net/url: correct field name in Redacted doc comment Fixes #60716 Change-Id: I86037784d6c12fd22bd03c3efabef379fa0646aa Reviewed-on: https://go-review.googlesource.com/c/go/+/502355 Run-TryBot: Ian Lance Taylor Reviewed-by: Dmitri Shuralyov Run-TryBot: Ian Lance Taylor TryBot-Result: Gopher Robot Auto-Submit: Ian Lance Taylor Reviewed-by: Dmitri Shuralyov Reviewed-by: Ian Lance Taylor --- src/net/url/url.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/net/url/url.go b/src/net/url/url.go index 9ffd858a86..501b263e87 100644 --- a/src/net/url/url.go +++ b/src/net/url/url.go @@ -859,7 +859,7 @@ func (u *URL) String() string { } // Redacted is like String but replaces any password with "xxxxx". -// Only the password in u.URL is redacted. +// Only the password in u.User is redacted. func (u *URL) Redacted() string { if u == nil { return "" -- 2.50.0