summaryrefslogtreecommitdiff
path: root/href.go
diff options
context:
space:
mode:
Diffstat (limited to 'href.go')
-rw-r--r--href.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/href.go b/href.go
index 2cd7677..6db1347 100644
--- a/href.go
+++ b/href.go
@@ -10,9 +10,9 @@ import (
)
var (
- errNotHTML = errors.New("not HTML")
- errTooBig = errors.New("content too big")
- errNotTitle = errors.New("no Title")
+ errNotHTML = errors.New("not HTML")
+ errTooBig = errors.New("content too big")
+ errNoTitle = errors.New("no title")
)
func title(n *html.Node) (string, error) {
@@ -28,7 +28,7 @@ func title(n *html.Node) (string, error) {
return t, nil
}
}
- return "", errNotTitle
+ return "", errNoTitle
}
func getTitle(uri string) (string, error) {