diff options
author | Vse Mozhet Byt <vsemozhetbyt@gmail.com> | 2017-06-01 01:21:22 +0300 |
---|---|---|
committer | Vse Mozhet Byt <vsemozhetbyt@gmail.com> | 2017-06-03 01:33:55 +0300 |
commit | 7de6998d899125e9d43de7dae0bb0a0ed9a76d34 (patch) | |
tree | 73f0c31fe41024a56ea06910d01c5a0714b334b0 /doc/guides/writing-and-running-benchmarks.md | |
parent | 78b135806f10c39c3bbd00edf206ddc9f505597e (diff) | |
download | android-node-v8-7de6998d899125e9d43de7dae0bb0a0ed9a76d34.tar.gz android-node-v8-7de6998d899125e9d43de7dae0bb0a0ed9a76d34.tar.bz2 android-node-v8-7de6998d899125e9d43de7dae0bb0a0ed9a76d34.zip |
doc: use destructuring in code examples
PR-URL: https://github.com/nodejs/node/pull/13349
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com>
Reviewed-By: Timothy Gu <timothygu99@gmail.com>
Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'doc/guides/writing-and-running-benchmarks.md')
-rw-r--r-- | doc/guides/writing-and-running-benchmarks.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/guides/writing-and-running-benchmarks.md b/doc/guides/writing-and-running-benchmarks.md index f608dbd624..148082de4b 100644 --- a/doc/guides/writing-and-running-benchmarks.md +++ b/doc/guides/writing-and-running-benchmarks.md @@ -335,7 +335,7 @@ the code inside the `main` function if it's more than just declaration. ```js 'use strict'; const common = require('../common.js'); -const SlowBuffer = require('buffer').SlowBuffer; +const { SlowBuffer } = require('buffer'); const configs = { // Number of operations, specified here so they show up in the report. |