mirror of
https://github.com/golang/go
synced 2024-09-15 22:20:06 +00:00
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: 0642bd7185
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>
This commit is contained in:
parent
7986e26a39
commit
f27a57ffb8
|
@ -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/",
|
||||
|
|
Loading…
Reference in a new issue