doc/articles: format error string as per go style

This commit is contained in:
Aditya Harindar 2019-10-28 13:30:56 +05:30
parent 1f3339f441
commit d8e1671071
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ func getTitle(w http.ResponseWriter, r *http.Request) (string, error) {
m := validPath.FindStringSubmatch(r.URL.Path)
if m == nil {
http.NotFound(w, r)
return "", errors.New("Invalid Page Title")
return "", errors.New("invalid Page Title")
}
return m[2], nil // The title is the second subexpression.
}