doc: clarify buffer class

Fixes: https://github.com/nodejs/node/issues/6891
PR-URL: https://github.com/nodejs/node/pull/6914
Reviewed-By: Claudio Rodriguez <cjrodr@yahoo.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
This commit is contained in:
Steve Mao 2016-05-21 20:37:53 +10:00 committed by Anna Henningsen
parent 6bad85c4fd
commit cc6a78ebb2
No known key found for this signature in database
GPG Key ID: D8B9F5AEAE84E4CF

View File

@ -18,7 +18,7 @@ The size of the `Buffer` is established when it is created and cannot be
resized.
The `Buffer` class is a global within Node.js, making it unlikely that one
would need to ever use `require('buffer')`.
would need to ever use `require('buffer').Buffer`.
```js
const buf1 = Buffer.alloc(10);