aboutsummaryrefslogtreecommitdiff
path: root/src/context/example_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/context/example_test.go')
-rw-r--r--src/context/example_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/context/example_test.go b/src/context/example_test.go
index 2b28b57704..b91a8acef3 100644
--- a/src/context/example_test.go
+++ b/src/context/example_test.go
@@ -59,7 +59,7 @@ func ExampleWithDeadline() {
ctx, cancel := context.WithDeadline(context.Background(), d)
// Even though ctx will be expired, it is good practice to call its
- // cancelation function in any case. Failure to do so may keep the
+ // cancellation function in any case. Failure to do so may keep the
// context and its parent alive longer than necessary.
defer cancel()