diff options
author | Vse Mozhet Byt <vsemozhetbyt@gmail.com> | 2017-05-24 04:05:06 +0300 |
---|---|---|
committer | Vse Mozhet Byt <vsemozhetbyt@gmail.com> | 2017-05-26 11:51:53 +0300 |
commit | 329b6e908c04031c5ee5c7adae56f8c1dbaf37c6 (patch) | |
tree | 667673fbe7ed0c76b9680df34055253a1bd2f3e7 /doc/api/inspector.md | |
parent | e6395cc07ae54f81699e369d292da29ecf113a16 (diff) |
doc: fix code example in inspector.md
PR-URL: https://github.com/nodejs/node/pull/13182
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'doc/api/inspector.md')
-rw-r--r-- | doc/api/inspector.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/api/inspector.md b/doc/api/inspector.md index 6eb7b721b12..110bd9363a1 100644 --- a/doc/api/inspector.md +++ b/doc/api/inspector.md @@ -85,8 +85,8 @@ a response is received. `callback` is a function that accepts two optional arguments - error and message-specific result. ```js -session.post('Runtime.evaluate', {'expression': '2 + 2'}, - (error, {result}) => console.log(result.value)); +session.post('Runtime.evaluate', { expression: '2 + 2' }, + (error, { result }) => console.log(result)); // Output: { type: 'number', value: 4, description: '4' } ``` |