From 2816e01ce5bbf96b60f98f5b38af795ff8f13bc8 Mon Sep 17 00:00:00 2001 From: Pascal Dierich Date: Fri, 15 Mar 2019 00:51:18 +0100 Subject: [PATCH] pkg/paths: fix typos in err message and doc. (#1139) --- pkg/paths/path.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/paths/path.go b/pkg/paths/path.go index 15883eff..59de7b63 100644 --- a/pkg/paths/path.go +++ b/pkg/paths/path.go @@ -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)