diff --git a/httpr.go b/httpr.go index 240c37a..18d2185 100644 --- a/httpr.go +++ b/httpr.go @@ -196,8 +196,8 @@ func (rr *Router) ServeStatic(path string, root http.FileSystem) error { }) } -// Param returns a parameter (that is set like `/a/b/:key/d`) inside a path -// with a key or empty string if no such parameter found. +// Param returns a URL parameter (that is set like `/a/b/:key/d`) with a key +// or an empty string if no such parameter found. func Param(r *http.Request, key string) string { if params := r.Context().Value(ParamsKey).(Params); params != nil { return params[key]