]> Cypherpunks repositories - gostls13.git/commitdiff
crypto/tls: fix typo referencing the required Config field
authorBrad Fitzpatrick <bradfitz@golang.org>
Tue, 3 Jun 2014 08:11:17 +0000 (18:11 +1000)
committerAndrew Gerrand <adg@golang.org>
Tue, 3 Jun 2014 08:11:17 +0000 (18:11 +1000)
Thanks to Frithjof Schulze for noticing.

LGTM=adg
R=adg
CC=agl, golang-codereviews, r
https://golang.org/cl/107740043

src/pkg/crypto/tls/tls.go

index 0b856c4e16befceeadb2e0c17293e5555f387fcf..d50e1202924a600ffeb2fd369661f319938d1127 100644 (file)
@@ -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}