mirror of
https://github.com/gomods/athens
synced 2026-02-03 12:10:32 +00:00
pkg/paths: fix typos in err message and doc. (#1139)
This commit is contained in:
committed by
Michal Pristas
parent
61e29b0a91
commit
2816e01ce5
+2
-2
@@ -23,7 +23,7 @@ func GetVersion(r *http.Request) (string, error) {
|
||||
|
||||
version := mux.Vars(r)["version"]
|
||||
if version == "" {
|
||||
return "", errors.E(op, "missing version paramater")
|
||||
return "", errors.E(op, "missing version parameter")
|
||||
}
|
||||
return version, nil
|
||||
}
|
||||
@@ -35,7 +35,7 @@ type AllPathParams struct {
|
||||
Version string `json:"version"`
|
||||
}
|
||||
|
||||
// GetAllParams fetches the path patams from c and returns them
|
||||
// GetAllParams fetches the path params from r and returns them
|
||||
func GetAllParams(r *http.Request) (*AllPathParams, error) {
|
||||
const op errors.Op = "paths.GetAllParams"
|
||||
mod, err := GetModule(r)
|
||||
|
||||
Reference in New Issue
Block a user