diff options
author | Rich Trott <rtrott@gmail.com> | 2018-02-20 15:10:10 -0800 |
---|---|---|
committer | Benjamin Gruenbaum <benji@peer5.com> | 2018-02-23 02:53:21 +0200 |
commit | 9cb96ac82808254e3322119eb1e6b2a7b847741e (patch) | |
tree | 7f3be41a7e2e3e28f5b3e87258d5fc37d92829ed /doc/api/buffer.md | |
parent | 54cb3c5759919745c25554daffc613dbee230d37 (diff) | |
download | android-node-v8-9cb96ac82808254e3322119eb1e6b2a7b847741e.tar.gz android-node-v8-9cb96ac82808254e3322119eb1e6b2a7b847741e.tar.bz2 android-node-v8-9cb96ac82808254e3322119eb1e6b2a7b847741e.zip |
doc: remove extraneous "for example" text
No need to announce obvious example code as being example code. Remove
unneeded "for example" text as one small way to try to keep the docs
more concise..
PR-URL: https://github.com/nodejs/node/pull/18890
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Matheus Marchini <matheus@sthima.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
Diffstat (limited to 'doc/api/buffer.md')
-rw-r--r-- | doc/api/buffer.md | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/doc/api/buffer.md b/doc/api/buffer.md index 82628156bf..e1911d6714 100644 --- a/doc/api/buffer.md +++ b/doc/api/buffer.md @@ -925,8 +925,6 @@ added: v8.2.0 For objects whose `valueOf()` function returns a value not strictly equal to `object`, returns `Buffer.from(object.valueOf(), offsetOrEncoding, length)`. -For example: - ```js const buf = Buffer.from(new String('this is a test')); // Prints: <Buffer 74 68 69 73 20 69 73 20 61 20 74 65 73 74> @@ -935,8 +933,6 @@ const buf = Buffer.from(new String('this is a test')); For objects that support `Symbol.toPrimitive`, returns `Buffer.from(object[Symbol.toPrimitive](), offsetOrEncoding, length)`. -For example: - ```js class Foo { [Symbol.toPrimitive]() { |