Skip to content

Commit 2a7647f

Browse files
authored
Clarify SetContext documentation (#1748)
1 parent 7045405 commit 2a7647f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

command.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,8 @@ func (c *Command) Context() context.Context {
236236
return c.ctx
237237
}
238238

239-
// SetContext sets context for the command. It is set to context.Background by default and will be overwritten by
240-
// Command.ExecuteContext or Command.ExecuteContextC
239+
// SetContext sets context for the command. This context will be overwritten by
240+
// Command.ExecuteContext or Command.ExecuteContextC.
241241
func (c *Command) SetContext(ctx context.Context) {
242242
c.ctx = ctx
243243
}

0 commit comments

Comments
 (0)