crypto/tls: clarify documentation

Clarify that the order of the list `NextProtos` matters.
This commit is contained in:
Pontus Leitzler 2018-10-24 20:45:19 +02:00 committed by GitHub
parent 5a7cfbc011
commit 4904544330
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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