Skip to content

Commit

Permalink
docs: Fix definition of middleware in guide.md (#1810)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsommerich authored Apr 22, 2024
1 parent f85214a commit 6fbc40b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

## Writing Middleware

Koa middleware are simple functions which return a `MiddlewareFunction` with signature (ctx, next). When
Koa middleware are simple functions with the signature `(ctx, next)` (i.e. a `MiddlewareFunction`). When
the middleware is run, it must manually invoke `next()` to run the "downstream" middleware.

For example if you wanted to track how long it takes for a request to propagate through Koa by adding an
Expand Down

0 comments on commit 6fbc40b

Please sign in to comment.