From 59bb4c649ece2c7790904633412be8a7c22412ef Mon Sep 17 00:00:00 2001 From: zhmushan Date: Thu, 12 Mar 2020 15:40:35 +0800 Subject: [PATCH] fix guide --- docs/getting_started.md | 2 +- docs/middleware.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/getting_started.md b/docs/getting_started.md index b6e534b..750f15f 100644 --- a/docs/getting_started.md +++ b/docs/getting_started.md @@ -73,7 +73,7 @@ app.static("/sample", "./folder/sample"); ```ts const track: MiddlewareFunc = next => c => { console.log(`request to ${c.path}`); - next(c); + return next(c); }; // Root middleware diff --git a/docs/middleware.md b/docs/middleware.md index 3b3cc2c..4b2b531 100644 --- a/docs/middleware.md +++ b/docs/middleware.md @@ -7,7 +7,7 @@ Let's start by implementing a simple middleware feature. ```ts const track: MiddlewareFunc = next => c => { console.log(`request to ${c.path}`); - next(c); + return next(c); }; ```