Skip to content

Commit

Permalink
net/http: use correct method name in Server.ServeTLS docs
Browse files Browse the repository at this point in the history
Closes #23028

Change-Id: I469f1ab2dee9151334b38e0d3a22eb9840c8807b
Reviewed-on: https://go-review.googlesource.com/82495
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
  • Loading branch information
artyom authored and bradfitz committed Dec 7, 2017
1 parent 44f241b commit 31f8ca5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/net/http/server.go
Expand Up @@ -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.
//
Expand Down

0 comments on commit 31f8ca5

Please sign in to comment.