@@ -2674,7 +2674,8 @@ func stripHostPort(h string) string {
2674
2674
// the path that will match after following the redirect.
2675
2675
//
2676
2676
// If there is no registered handler that applies to the request,
2677
- // Handler returns a “page not found” handler and an empty pattern.
2677
+ // Handler returns a “page not found” or “method not supported”
2678
+ // handler and an empty pattern.
2678
2679
//
2679
2680
// Handler does not modify its argument. In particular, it does not
2680
2681
// populate named path wildcards, so r.PathValue will always return
@@ -2864,7 +2865,7 @@ func (mux *ServeMux) ServeHTTP(w ResponseWriter, r *Request) {
2864
2865
// always refers to user code.
2865
2866
2866
2867
// Handle registers the handler for the given pattern.
2867
- // If the given pattern conflicts, with one that is already registered, Handle
2868
+ // If the given pattern conflicts with one that is already registered, Handle
2868
2869
// panics.
2869
2870
func (mux * ServeMux ) Handle (pattern string , handler Handler ) {
2870
2871
if use121 {
@@ -2875,7 +2876,7 @@ func (mux *ServeMux) Handle(pattern string, handler Handler) {
2875
2876
}
2876
2877
2877
2878
// HandleFunc registers the handler function for the given pattern.
2878
- // If the given pattern conflicts, with one that is already registered, HandleFunc
2879
+ // If the given pattern conflicts with one that is already registered, HandleFunc
2879
2880
// panics.
2880
2881
func (mux * ServeMux ) HandleFunc (pattern string , handler func (ResponseWriter , * Request )) {
2881
2882
if use121 {
0 commit comments