Make AddChild more generic

This commit is contained in:
Julian Kornberger 2018-09-17 13:38:04 +02:00 committed by Vish (Ishaya) Abrams
parent 1404979ff6
commit d3a23fd178
1 changed files with 2 additions and 2 deletions

View File

@ -282,8 +282,8 @@ func NewRtAttrChild(parent *RtAttr, attrType int, data []byte) *RtAttr {
return attr
}
// AddChild adds an existing RtAttr as a child.
func (a *RtAttr) AddChild(attr *RtAttr) {
// AddChild adds an existing NetlinkRequestData as a child.
func (a *RtAttr) AddChild(attr NetlinkRequestData) {
a.children = append(a.children, attr)
}