]> Cypherpunks repositories - gostls13.git/commitdiff
http: add pointer from Handle[Func] to ServeMux docs
authorAndrew Gerrand <adg@golang.org>
Tue, 22 Feb 2011 00:16:25 +0000 (11:16 +1100)
committerAndrew Gerrand <adg@golang.org>
Tue, 22 Feb 2011 00:16:25 +0000 (11:16 +1100)
R=r
CC=golang-dev
https://golang.org/cl/4169065

src/pkg/http/server.go

index 0be270ad30dd92e8cee228c5a841686191335052..d16cadb3b5d8a126d662525fa00dfc9b38ce979c 100644 (file)
@@ -657,10 +657,12 @@ func (mux *ServeMux) HandleFunc(pattern string, handler func(ResponseWriter, *Re
 
 // Handle registers the handler for the given pattern
 // in the DefaultServeMux.
+// The documentation for ServeMux explains how patterns are matched.
 func Handle(pattern string, handler Handler) { DefaultServeMux.Handle(pattern, handler) }
 
 // HandleFunc registers the handler function for the given pattern
 // in the DefaultServeMux.
+// The documentation for ServeMux explains how patterns are matched.
 func HandleFunc(pattern string, handler func(ResponseWriter, *Request)) {
        DefaultServeMux.HandleFunc(pattern, handler)
 }