From 31301729486da749f8afc3c512b71918cce5ec08 Mon Sep 17 00:00:00 2001 From: iamqizhao Date: Wed, 15 Apr 2015 15:40:58 -0700 Subject: [PATCH] fix some comments --- credentials/credentials.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/credentials/credentials.go b/credentials/credentials.go index c8a304cd..68cca2e9 100644 --- a/credentials/credentials.go +++ b/credentials/credentials.go @@ -113,12 +113,12 @@ func (c *tlsCreds) Dial(network, addr string) (_ net.Conn, err error) { return c.DialWithDialer(new(net.Dialer), network, addr) } -// NewListener creates a net.Listener with a TLS configuration constructed -// from the information in tlsCreds. +// NewListener creates a net.Listener using the information in tlsCreds. func (c *tlsCreds) NewListener(lis net.Listener) net.Listener { return tls.NewListener(lis, &c.config) } +// NewTLS uses c to construct a TransportAuthenticator based on TLS. func NewTLS(c *tls.Config) TransportAuthenticator { tc := &tlsCreds{*c} tc.config.NextProtos = alpnProtoStr