From f27a57ffb8e558c74e36b952e8050025b1c7c6a0 Mon Sep 17 00:00:00 2001 From: Dave Russell Date: Tue, 17 Oct 2023 08:22:46 +0000 Subject: [PATCH] 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 --- src/net/http/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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/", -- 2.48.1