]> Cypherpunks repositories - gostls13.git/commitdiff
net/http: adjust wording on ServeMux godoc
authorDave Russell <forfuncsake@gmail.com>
Tue, 17 Oct 2023 08:22:46 +0000 (08:22 +0000)
committerDamien Neil <dneil@google.com>
Mon, 4 Mar 2024 19:37:37 +0000 (19:37 +0000)
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 <dneil@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Roland Shoemaker <roland@golang.org>
src/net/http/server.go

index bd7cce6793e94595fb4ebb72f4d514647032f8dd..b0a2a1d888225c442f8990895838ac3e16825df6 100644 (file)
@@ -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/",