]> Cypherpunks repositories - gostls13.git/commitdiff
doc/articles: format error string as per go style
authorAditya Harindar <aditya.harindar@gmail.com>
Mon, 28 Oct 2019 08:14:47 +0000 (08:14 +0000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Mon, 28 Oct 2019 16:15:54 +0000 (16:15 +0000)
First letter of an error string should not be capitalized, as prescribed in the [wiki](https://github.com/golang/go/wiki/Errors).

Change-Id: Iea1413f19b5240d3bef79f216094d210b54bdb62
GitHub-Last-Rev: d8e167107122b603c4f647d722537668ad1c680d
GitHub-Pull-Request: golang/go#35203
Reviewed-on: https://go-review.googlesource.com/c/go/+/203797
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
doc/articles/wiki/final-noclosure.go

index b4ce2557426a8376d6af733ffea8ae74b1d1ad32..e7a5a34519c6c43aa79e8f07a74303a502acc1d4 100644 (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.
 }