aboutsummaryrefslogtreecommitdiffhomepage
path: root/context.go
diff options
context:
space:
mode:
authorMohammed Al Sahaf <[email protected]>2020-01-03 21:33:22 +0300
committerMatt Holt <[email protected]>2020-01-03 11:33:22 -0700
commitdff78d82ce21d97cad53171b72b88550e02c2c7f (patch)
treec40db6f01dbeee0b23db1a67cd4d0e431a639071 /context.go
parent8c7c2e4af2e4e7ad842b959e2100855f6edadd68 (diff)
downloadcaddy-dff78d82ce21d97cad53171b72b88550e02c2c7f.tar.gz
caddy-dff78d82ce21d97cad53171b72b88550e02c2c7f.zip
v2: housekeeping: address minor lint complaints (#2957)
* v2: housekeeping: update tools * v2: housekeeping: adhere to US locale in spelling * v2: housekeeping: simplify code
Diffstat (limited to 'context.go')
-rw-r--r--context.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/context.go b/context.go
index e515cb975..d64880c14 100644
--- a/context.go
+++ b/context.go
@@ -30,7 +30,7 @@ import (
// that spawned the modules which are loaded. It should be used
// with care and wrapped with derivation functions from the
// standard context package only if you don't need the Caddy
-// specific features. These contexts are cancelled when the
+// specific features. These contexts are canceled when the
// lifetime of the modules loaded from it is over.
//
// Use NewContext() to get a valid value (but most modules will
@@ -75,7 +75,7 @@ func NewContext(ctx Context) (Context, context.CancelFunc) {
return newCtx, wrappedCancel
}
-// OnCancel executes f when ctx is cancelled.
+// OnCancel executes f when ctx is canceled.
func (ctx *Context) OnCancel(f func()) {
ctx.cleanupFuncs = append(ctx.cleanupFuncs, f)
}