Skip to content

Commit

Permalink
Clarify SetContext documentation (#1748)
Browse files Browse the repository at this point in the history
  • Loading branch information
katexochen committed Aug 30, 2022
1 parent 7045405 commit 2a7647f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions command.go
Expand Up @@ -236,8 +236,8 @@ func (c *Command) Context() context.Context {
return c.ctx
}

// SetContext sets context for the command. It is set to context.Background by default and will be overwritten by
// Command.ExecuteContext or Command.ExecuteContextC
// SetContext sets context for the command. This context will be overwritten by
// Command.ExecuteContext or Command.ExecuteContextC.
func (c *Command) SetContext(ctx context.Context) {
c.ctx = ctx
}
Expand Down

0 comments on commit 2a7647f

Please sign in to comment.