Clarify SetContext documentation

This commit is contained in:
katexochen 2022-07-02 22:14:49 +02:00
parent 69083f81b2
commit 41924bb825

View file

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