From 653bae85f57ed19743074449fed4c7324ffc636d Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Sun, 28 May 2023 03:16:41 +0400 Subject: [PATCH] Changed comment for Param(). --- httpr.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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]