diff --git a/process/process.go b/process/process.go index a50b4dc..a667ddf 100644 --- a/process/process.go +++ b/process/process.go @@ -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()) } diff --git a/v3/process/process.go b/v3/process/process.go index 6ef390a..6dd7167 100644 --- a/v3/process/process.go +++ b/v3/process/process.go @@ -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()) }