diff --git a/category.go b/category.go index 829663b..a631f87 100644 --- a/category.go +++ b/category.go @@ -13,7 +13,7 @@ type Category struct { Label string `xml:"label,attr,omitempty"` } -// NewCategory creates a new Category. It returns a *Category and an error. +// NewCategory creates a new Category. It returns a *Category. func NewCategory(term string) *Category { return &Category{Term: term} } diff --git a/link.go b/link.go index 8b49d26..fcfef06 100644 --- a/link.go +++ b/link.go @@ -16,8 +16,8 @@ type Link struct { Length uint `xml:"length,attr,omitempty"` } -// NewLink creates a new Link. It returns a *Link and an error. -func NewLink(href, content string) *Link { +// NewLink creates a new Link. It returns a *Link. +func NewLink(href string) *Link { return &Link{Href: IRI(href)} }