]> Cypherpunks repositories - gostls13.git/commitdiff
net/url: correct field name in Redacted doc comment
authorIan Lance Taylor <iant@golang.org>
Sun, 11 Jun 2023 00:42:54 +0000 (17:42 -0700)
committerGopher Robot <gobot@golang.org>
Sun, 11 Jun 2023 23:27:39 +0000 (23:27 +0000)
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>
src/net/url/url.go

index 9ffd858a86632504ab4f9e28ccb62e7ac50e9e3d..501b263e873df63b041676d4d8808ef956d2ad79 100644 (file)
@@ -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 ""