Skip to content

Commit

Permalink
fix: 指明构造函数返回类型,而不是接口
Browse files Browse the repository at this point in the history
  • Loading branch information
WindowsSov8forUs committed Jun 19, 2024
1 parent e541770 commit 9ce5947
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/message/message_element_extend.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func (e *MessageElementExtend) Parse(n *html.Node) (MessageElement, error) {
return result, nil
}

func NewMessageElementExtend(tag string, attrs map[string]string, children ...MessageElement) MessageElement {
func NewMessageElementExtend(tag string, attrs map[string]string, children ...MessageElement) *MessageElementExtend {
result := &MessageElementExtend{
tag: tag,
}
Expand Down

0 comments on commit 9ce5947

Please sign in to comment.