Skip to content

Commit

Permalink
docs: use names of constants declared (#923)
Browse files Browse the repository at this point in the history
  • Loading branch information
coogleyao authored and atian25 committed May 17, 2017
1 parent 02b02e0 commit 6180d5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/zh-cn/basics/controller.md
Original file line number Diff line number Diff line change
Expand Up @@ -856,6 +856,6 @@ exports.show = function* (ctx) {
ctx.body = yield ctx.service.post.get();
const used = Date.now() - start;
// 设置一个响应头
ctx.set('show-response-time', userd.toString());
ctx.set('show-response-time', used.toString());
};
```

0 comments on commit 6180d5d

Please sign in to comment.