mirror of
https://github.com/golang/go
synced 2024-11-23 00:40:08 -07:00
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 <iant@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Run-TryBot: Ian Lance Taylor <iant@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Auto-Submit: Ian Lance Taylor <iant@google.com> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org> Reviewed-by: Ian Lance Taylor <iant@google.com>
This commit is contained in:
parent
bd8c133097
commit
ee46f0b508
@ -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 ""
|
||||
|
Loading…
Reference in New Issue
Block a user