From: Ian Lance Taylor Date: Sun, 11 Jun 2023 00:42:54 +0000 (-0700) Subject: net/url: correct field name in Redacted doc comment X-Git-Tag: go1.21rc1~37 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=ee46f0b5084461978432aa20df003ac52500b0f0;p=gostls13.git 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 --- 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 ""