Clarify the godoc of the Children function.

The previous godoc string was slightly confusing and only described information that can be deduced from the function signature.
pull/1030/head
Paweł Zuzelski
parent a9a6146c93
commit 17c03b3b2d

@ -476,7 +476,8 @@ func (p *Process) PageFaults() (*PageFaultsStat, error) {
return p.PageFaultsWithContext(context.Background())
}
// Children returns a slice of Process of the process.
// Children returns the children of the process represented as a slice
// of pointers to Process type.
func (p *Process) Children() ([]*Process, error) {
return p.ChildrenWithContext(context.Background())
}

@ -487,7 +487,8 @@ func (p *Process) PageFaults() (*PageFaultsStat, error) {
return p.PageFaultsWithContext(context.Background())
}
// Children returns a slice of Process of the process.
// Children returns the children of the process represented as a slice
// of pointers to Process type.
func (p *Process) Children() ([]*Process, error) {
return p.ChildrenWithContext(context.Background())
}

Loading…
Cancel
Save