From f569df6eade1373dee7116ceac977636bdfc8edc Mon Sep 17 00:00:00 2001 From: tjpcc Date: Wed, 18 Jan 2023 22:10:29 -0700 Subject: bugfix and some docs cleanup --- handler.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'handler.go') diff --git a/handler.go b/handler.go index f940b77..a04cd33 100644 --- a/handler.go +++ b/handler.go @@ -29,11 +29,11 @@ func FallthroughHandler(handlers ...Handler) Handler { } } -// Filter builds a middleware which only calls the wrapped under a condition. +// Filter builds a middleware which only calls the wrapped Handler under a condition. // -// When the condition function returns false it instead invokes the -// test-failure handler. The failure handler may also be nil, in which case -// the final handler will return a nil response whenever the condition fails. +// When the condition function returns false it instead invokes the test-failure +// handler. The failure handler may also be nil, in which case the final handler will +// return a nil response whenever the condition fails. func Filter( condition func(context.Context, *Request) bool, failure Handler, -- cgit v1.2.3