From: Brad Fitzpatrick Date: Tue, 3 Jun 2014 08:11:17 +0000 (+1000) Subject: crypto/tls: fix typo referencing the required Config field X-Git-Tag: go1.4beta1~1336 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=19fe9a2c722ee7612e86b46b7bf8e6b409295ecc;p=gostls13.git 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 --- 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}