mirror of
https://github.com/golang/go
synced 2024-11-05 17:46:16 -07:00
go/analysis/passes/lostcancel: fix typo
cancelation → cancellation Change-Id: I40abe4acfc2bf061e20bd9477a520aef6dfe848c Reviewed-on: https://go-review.googlesource.com/c/tools/+/207845 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
parent
dc59f20efa
commit
4054736f96
@ -3,7 +3,7 @@
|
|||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
// Package lostcancel defines an Analyzer that checks for failure to
|
// Package lostcancel defines an Analyzer that checks for failure to
|
||||||
// call a context cancelation function.
|
// call a context cancellation function.
|
||||||
package lostcancel
|
package lostcancel
|
||||||
|
|
||||||
import (
|
import (
|
||||||
@ -20,7 +20,7 @@ import (
|
|||||||
|
|
||||||
const Doc = `check cancel func returned by context.WithCancel is called
|
const Doc = `check cancel func returned by context.WithCancel is called
|
||||||
|
|
||||||
The cancelation function returned by context.WithCancel, WithTimeout,
|
The cancellation function returned by context.WithCancel, WithTimeout,
|
||||||
and WithDeadline must be called or the new context will remain live
|
and WithDeadline must be called or the new context will remain live
|
||||||
until its parent context is cancelled.
|
until its parent context is cancelled.
|
||||||
(The background context is never cancelled.)`
|
(The background context is never cancelled.)`
|
||||||
|
Loading…
Reference in New Issue
Block a user