Small bug fix

This commit is contained in:
Jason Streifling 2024-10-17 18:59:24 +02:00
parent d11b229691
commit 478d679985
2 changed files with 3 additions and 3 deletions

View File

@ -13,7 +13,7 @@ type Category struct {
Label string `xml:"label,attr,omitempty"` 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 { func NewCategory(term string) *Category {
return &Category{Term: term} return &Category{Term: term}
} }

View File

@ -16,8 +16,8 @@ type Link struct {
Length uint `xml:"length,attr,omitempty"` Length uint `xml:"length,attr,omitempty"`
} }
// NewLink creates a new Link. It returns a *Link and an error. // NewLink creates a new Link. It returns a *Link.
func NewLink(href, content string) *Link { func NewLink(href string) *Link {
return &Link{Href: IRI(href)} return &Link{Href: IRI(href)}
} }