From 38da2b7bd9c7153b550eb81a145177f3c5b3b5ef Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Tue, 3 Jun 2014 18:11:17 +1000 Subject: [PATCH] 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 --- tls.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tls.go b/tls.go index 0b856c4..d50e120 100644 --- a/tls.go +++ b/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}