Skip to content

Commit

Permalink
Make AddChild more generic
Browse files Browse the repository at this point in the history
  • Loading branch information
corny authored and vishvananda committed Oct 18, 2018
1 parent 1404979 commit d3a23fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nl/nl_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit d3a23fd

Please sign in to comment.