diff options
author | Ian Lance Taylor <iant@golang.org> | 2023-06-10 17:42:54 -0700 |
---|---|---|
committer | Gopher Robot <gobot@golang.org> | 2023-06-11 23:27:39 +0000 |
commit | ee46f0b5084461978432aa20df003ac52500b0f0 (patch) | |
tree | c8ad6a90927d4fdf859e87bb131d18d025f71d5b | |
parent | bd8c1330974bf403f0d6b167b81914dbdde0f846 (diff) | |
download | go-ee46f0b5084461978432aa20df003ac52500b0f0.tar.gz go-ee46f0b5084461978432aa20df003ac52500b0f0.zip |
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>
-rw-r--r-- | src/net/url/url.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 "" |