pkg/paths: fix typos in err message and doc. (#1139)

This commit is contained in:
Pascal Dierich
2019-03-15 00:51:18 +01:00
committed by Michal Pristas
parent 61e29b0a91
commit 2816e01ce5
+2 -2
View File
@@ -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)