From: Dave Russell Date: Tue, 17 Oct 2023 08:22:46 +0000 (+0000) Subject: net/http: adjust wording on ServeMux godoc X-Git-Tag: go1.23rc1~1002 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=f27a57ffb8e558c74e36b952e8050025b1c7c6a0;p=gostls13.git net/http: adjust wording on ServeMux godoc When reading through the docs, I found that the sentence flows better with the `to` present. Change-Id: I51c21fa33c7a13748c0814dd87c76b9a8d64e2ec GitHub-Last-Rev: 0642bd7185343ba562c7057071d4689ead7a378e GitHub-Pull-Request: golang/go#63587 Reviewed-on: https://go-review.googlesource.com/c/go/+/535935 Reviewed-by: Damien Neil LUCI-TryBot-Result: Go LUCI Reviewed-by: Roland Shoemaker --- diff --git a/src/net/http/server.go b/src/net/http/server.go index bd7cce6793..b0a2a1d888 100644 --- a/src/net/http/server.go +++ b/src/net/http/server.go @@ -2379,7 +2379,7 @@ func RedirectHandler(url string, code int) Handler { // There is one exception to this rule, for backwards compatibility: // if two patterns would otherwise conflict and one has a host while the other does not, // then the pattern with the host takes precedence. -// If a pattern passed [ServeMux.Handle] or [ServeMux.HandleFunc] conflicts with +// If a pattern passed to [ServeMux.Handle] or [ServeMux.HandleFunc] conflicts with // another pattern that is already registered, those functions panic. // // As an example of the general rule, "/images/thumbnails/" is more specific than "/images/",