Skip to content

Commit 5cec6fb

Browse files
authoredDec 1, 2021
Replace user with ctx.user in param docs (#136)
1 parent 90dd73c commit 5cec6fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎lib/layer.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ Layer.prototype.url = function (params, options) {
159159
* router
160160
* .param('user', function (id, ctx, next) {
161161
* ctx.user = users[id];
162-
* if (!user) return ctx.status = 404;
162+
* if (!ctx.user) return ctx.status = 404;
163163
* next();
164164
* })
165165
* .get('/users/:user', function (ctx, next) {

0 commit comments

Comments
 (0)
Please sign in to comment.