Skip to content

Commit

Permalink
Clarify the godoc of the Children function.
Browse files Browse the repository at this point in the history
The previous godoc string was slightly confusing and only described information that can be deduced from the function signature.
  • Loading branch information
pawelz committed Feb 4, 2021
1 parent a9a6146 commit 17c03b3
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 17c03b3

Please sign in to comment.