Skip to content

Commit

Permalink
Merge pull request shirou#1030 from pawelz/master
Browse files Browse the repository at this point in the history
Clarify the godoc of the Children function.
  • Loading branch information
shirou committed Feb 20, 2021
2 parents a346c31 + 17c03b3 commit a44e758
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion process/process.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}
Expand Down
3 changes: 2 additions & 1 deletion v3/process/process.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}
Expand Down

0 comments on commit a44e758

Please sign in to comment.