mirror of https://github.com/golang/go.git
doc/articles: format error string as per go style
This commit is contained in:
parent
1f3339f441
commit
d8e1671071
|
|
@ -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.
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue