Merge pull request #1030 from pawelz/master

Clarify the godoc of the Children function.
pull/1039/head
shirou 4 years ago committed by GitHub
commit a44e7585f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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