Commit 31f8ca51 authored by Artyom Pervukhin's avatar Artyom Pervukhin Committed by Brad Fitzpatrick

net/http: use correct method name in Server.ServeTLS docs

Closes #23028

Change-Id: I469f1ab2dee9151334b38e0d3a22eb9840c8807b
Reviewed-on: https://go-review.googlesource.com/82495Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
parent 44f241be
......@@ -2778,7 +2778,7 @@ func (srv *Server) Serve(l net.Listener) error {
// server's certificate, any intermediates, and the CA's certificate.
//
// For HTTP/2 support, srv.TLSConfig should be initialized to the
// provided listener's TLS Config before calling Serve. If
// provided listener's TLS Config before calling ServeTLS. If
// srv.TLSConfig is non-nil and doesn't include the string "h2" in
// Config.NextProtos, HTTP/2 support is not enabled.
//
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment