Skip to content

Commit af5943f

Browse files
ALX99gopherbot
authored andcommitted
context: update doc comment to link to context interface
Linking to the Context interface in the WithCancel doc comment makes it more consistent with the WithDeadline and WithTimeout doc comments. Change-Id: Ic935c63e8262784be5f3564816402221ba2fbd63 GitHub-Last-Rev: 9c6bb60 GitHub-Pull-Request: #65768 Reviewed-on: https://go-review.googlesource.com/c/go/+/564996 Reviewed-by: Dmitri Shuralyov <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]> Auto-Submit: Dmitri Shuralyov <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]>
1 parent 86a32d6 commit af5943f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/context/context.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ type CancelFunc func()
231231
// or when the parent context's Done channel is closed, whichever happens first.
232232
//
233233
// Canceling this context releases resources associated with it, so code should
234-
// call cancel as soon as the operations running in this Context complete.
234+
// call cancel as soon as the operations running in this [Context] complete.
235235
func WithCancel(parent Context) (ctx Context, cancel CancelFunc) {
236236
c := withCancel(parent)
237237
return c, func() { c.cancel(true, Canceled, nil) }

0 commit comments

Comments
 (0)