]> Cypherpunks repositories - gostls13.git/commitdiff
net/http: use correct method name in Server.ServeTLS docs
authorArtyom Pervukhin <artyom.pervukhin@gmail.com>
Thu, 7 Dec 2017 11:05:08 +0000 (14:05 +0300)
committerBrad Fitzpatrick <bradfitz@golang.org>
Thu, 7 Dec 2017 15:42:26 +0000 (15:42 +0000)
Closes #23028

Change-Id: I469f1ab2dee9151334b38e0d3a22eb9840c8807b
Reviewed-on: https://go-review.googlesource.com/82495
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/net/http/server.go

index a46823c70421b5d2b6432fa2a9a7b5fc6827a5a5..3fa666016490519d6c84f502a793c824deaf911c 100644 (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.
 //