Merge pull request #658 from pra85/patch-2

Fix a typo
This commit is contained in:
Yiyu He 2016-02-13 23:41:57 +08:00
commit 188922a003

View file

@ -58,7 +58,7 @@ app.use(function *(next){
Note that the final middleware (step __6__) yields to what looks to be nothing - it's actually Note that the final middleware (step __6__) yields to what looks to be nothing - it's actually
yielding to a no-op generator within Koa. This is so that every middleware can conform with the yielding to a no-op generator within Koa. This is so that every middleware can conform with the
same API, and may be placed before or after others. If you removed `yield next;` from the furthest same API, and may be placed before or after others. If you removed `yield next;` from the furthest
"downstream" middleware everything would function appropritaely, however it would no longer conform "downstream" middleware everything would function appropriately, however it would no longer conform
to this behaviour. to this behaviour.
For example this would be fine: For example this would be fine: