From ea5b7e113a4c7eca9b8ae52d0fb2b4aee876346a Mon Sep 17 00:00:00 2001 From: Gianluca Zuccarelli Date: Fri, 25 Jun 2021 10:07:14 +0100 Subject: [PATCH] fix: small typo in code comments --- internal/weldr/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/weldr/api.go b/internal/weldr/api.go index 6fd746c34..07a1b274c 100644 --- a/internal/weldr/api.go +++ b/internal/weldr/api.go @@ -358,7 +358,7 @@ type responseError struct { Msg string `json:"msg"` } -// verifyStringsWithRegex checks a slive of strings against a regex of allowed characters +// verifyStringsWithRegex checks a slice of strings against a regex of allowed characters // it writes the InvalidChars error to the writer and returns false if any of them fail the check // It will also return an error if the string is empty func verifyStringsWithRegex(writer http.ResponseWriter, strings []string, re *regexp.Regexp) bool {