From 49045443305b70da93a7010747142da6efb59bde Mon Sep 17 00:00:00 2001 From: Pontus Leitzler Date: Wed, 24 Oct 2018 20:45:19 +0200 Subject: [PATCH] crypto/tls: clarify documentation Clarify that the order of the list `NextProtos` matters. --- src/crypto/tls/common.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crypto/tls/common.go b/src/crypto/tls/common.go index 50db88eb60..22755b89c3 100644 --- a/src/crypto/tls/common.go +++ b/src/crypto/tls/common.go @@ -424,7 +424,7 @@ type Config struct { // If RootCAs is nil, TLS uses the host's root CA set. RootCAs *x509.CertPool - // NextProtos is a list of supported, application level protocols. + // NextProtos is a list of supported application level protocols, in order of preference. NextProtos []string // ServerName is used to verify the hostname on the returned