mux: Tweak documentation

This commit is contained in:
Adnan Maolood 2021-06-26 20:26:30 -04:00
parent b5c47a5ef0
commit 3d2110d90f

6
mux.go
View File

@ -38,9 +38,9 @@ import (
// "/search" and "search.example.com/" without also taking over requests
// for "gemini://example.com/".
//
// Wildcard patterns can be used to match multiple hostnames, so that the
// pattern "*.example.com" will match requests for "blog.example.com" and
// "gemini.example.com", but not "example.org".
// Wildcard patterns can be used to match multiple hostnames. For example,
// the pattern "*.example.com" will match requests for "blog.example.com"
// and "gemini.example.com", but not "example.org".
//
// If a subtree has been registered and a request is received naming the
// subtree root without its trailing slash, Mux redirects that