aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/crypto/tls
diff options
context:
space:
mode:
authorBrad Fitzpatrick <bradfitz@golang.org>2014-06-03 18:11:17 +1000
committerAndrew Gerrand <adg@golang.org>2014-06-03 18:11:17 +1000
commit19fe9a2c722ee7612e86b46b7bf8e6b409295ecc (patch)
tree1147e7b46cbd6e6c8b87cc065f8dd5fe26a01888 /src/pkg/crypto/tls
parent14a75ecf4a673e99ff41c1a1166289840d4f3cbb (diff)
downloadgo-19fe9a2c722ee7612e86b46b7bf8e6b409295ecc.tar.xz
crypto/tls: fix typo referencing the required Config field
Thanks to Frithjof Schulze for noticing. LGTM=adg R=adg CC=agl, golang-codereviews, r https://golang.org/cl/107740043
Diffstat (limited to 'src/pkg/crypto/tls')
-rw-r--r--src/pkg/crypto/tls/tls.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/crypto/tls/tls.go b/src/pkg/crypto/tls/tls.go
index 0b856c4e16..d50e120292 100644
--- a/src/pkg/crypto/tls/tls.go
+++ b/src/pkg/crypto/tls/tls.go
@@ -28,7 +28,7 @@ func Server(conn net.Conn, config *Config) *Conn {
// Client returns a new TLS client side connection
// using conn as the underlying transport.
-// The config cannot be nil: users must set either ServerHostname or
+// The config cannot be nil: users must set either ServerName or
// InsecureSkipVerify in the config.
func Client(conn net.Conn, config *Config) *Conn {
return &Conn{conn: conn, config: config, isClient: true}