crypto/tls: clarify documentation on tls.Config.NextProtos
crypto/tls: clarify documentation on tls.Config.NextProtos

This change will aid users to make less mistakes where you, for example, define both HTTP/1.1 and H2, but in the wrong order.

    package main

    import (
        "crypto/tls"
        "net"
    )

    func main() {
        srv := &http.Server{
            TLSConfig: &tls.Config{
                NextProtos: []string{"http/1.1", "h2"},
            },
        }
        srv.ListenAndServeTLS("server.crt", "server.key")
    }

When using major browsers or curl, they will never be served H2 since they also support HTTP/1.0 and the list is processed in order.

Change-Id: Id14098b5e48f624ca308137917874d475c2f22a0
GitHub-Last-Rev: f3594a6411bf7dde71c850f3e85a2b5a21974129
GitHub-Pull-Request: golang/go#28367
Reviewed-on: https://go-review.googlesource.com/c/144387
Reviewed-by: Filippo Valsorda <4f40cda291c5f9634e1affd3db44947af61f705c@golang.org>

josharian/go,akutz/go,cloudflare/go,nawawi/go,cloudflare/go,cloudflare/go,josharian/go,CAFxX/go,akutz/go,cloudflare/go,akutz/go,CAFxX/go,golang/go,CAFxX/go,cloudflare/go,akutz/go,nawawi/go,akutz/go,nawawi/go,josharian/go,nawawi/go,golang/go,josharian/go,golang/go,josharian/go,nawawi/go,golang/go,golang/go,nawawi/go,josharian/go,cloudflare/go,akutz/go,golang/go,CAFxX/go,CAFxX/go,josharian/go,akutz/go,cloudflare/go,CAFxX/go,nawawi/go,golang/go,CAFxX/go,josharian/go,akutz/go,nawawi/go,cloudflare/go,CAFxX/go,golang/go