diff --git a/src/net/url/url.go b/src/net/url/url.go index 9ffd858a866..501b263e873 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 ""