Add "of" like the rest of the function docstrings
This commit is contained in:
2
route.go
2
route.go
@@ -328,7 +328,7 @@ func (m schemeMatcher) Match(r *http.Request, match *RouteMatch) bool {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Schemes adds a matcher for URL schemes.
|
// Schemes adds a matcher for URL schemes.
|
||||||
// It accepts a sequence schemes to be matched, e.g.: "http", "https".
|
// It accepts a sequence of schemes to be matched, e.g.: "http", "https".
|
||||||
func (r *Route) Schemes(schemes ...string) *Route {
|
func (r *Route) Schemes(schemes ...string) *Route {
|
||||||
for k, v := range schemes {
|
for k, v := range schemes {
|
||||||
schemes[k] = strings.ToLower(v)
|
schemes[k] = strings.ToLower(v)
|
||||||
|
|||||||
Reference in New Issue
Block a user