1
0
mirror of https://github.com/golang/go synced 2024-09-30 16:18:35 -06: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:
Anthony Fok 2019-11-19 14:53:29 -07:00 committed by Brad Fitzpatrick
parent dc59f20efa
commit 4054736f96

View File

@ -3,7 +3,7 @@
// license that can be found in the LICENSE file.
// Package lostcancel defines an Analyzer that checks for failure to
// call a context cancelation function.
// call a context cancellation function.
package lostcancel
import (
@ -20,7 +20,7 @@ import (
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
until its parent context is cancelled.
(The background context is never cancelled.)`