From dff78d82ce21d97cad53171b72b88550e02c2c7f Mon Sep 17 00:00:00 2001 From: Mohammed Al Sahaf Date: Fri, 3 Jan 2020 21:33:22 +0300 Subject: v2: housekeeping: address minor lint complaints (#2957) * v2: housekeeping: update tools * v2: housekeeping: adhere to US locale in spelling * v2: housekeeping: simplify code --- context.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'context.go') diff --git a/context.go b/context.go index e515cb9..d64880c 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) } -- cgit v1.2.3