Skip to content

Commit f27a57f

Browse files
forfuncsakeneild
authored andcommitted
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: 0642bd7 GitHub-Pull-Request: #63587 Reviewed-on: https://go-review.googlesource.com/c/go/+/535935 Reviewed-by: Damien Neil <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Roland Shoemaker <[email protected]>
1 parent 7986e26 commit f27a57f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/net/http/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2379,7 +2379,7 @@ func RedirectHandler(url string, code int) Handler {
23792379
// There is one exception to this rule, for backwards compatibility:
23802380
// if two patterns would otherwise conflict and one has a host while the other does not,
23812381
// then the pattern with the host takes precedence.
2382-
// If a pattern passed [ServeMux.Handle] or [ServeMux.HandleFunc] conflicts with
2382+
// If a pattern passed to [ServeMux.Handle] or [ServeMux.HandleFunc] conflicts with
23832383
// another pattern that is already registered, those functions panic.
23842384
//
23852385
// As an example of the general rule, "/images/thumbnails/" is more specific than "/images/",

0 commit comments

Comments
 (0)