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

Closes #23028

Change-Id: I469f1ab2dee9151334b38e0d3a22eb9840c8807b
Reviewed-on: https://go-review.googlesource.com/82495
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
Artyom Pervukhin 2017-12-07 14:05:08 +03:00 committed by Brad Fitzpatrick
parent 44f241be8b
commit 31f8ca51fc
1 changed files with 1 additions and 1 deletions

View File

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