summaryrefslogtreecommitdiff
path: root/doc/api/stream.md
diff options
context:
space:
mode:
authorRuben Bridgewater <ruben@bridgewater.de>2018-02-17 03:58:50 +0100
committerRuben Bridgewater <ruben@bridgewater.de>2018-02-22 14:56:17 +0000
commitd6fc7e3af4f8888b0d80d73287314b14d3c7f86e (patch)
tree962304de5975ae50b9d426c4df840bf9d9ca70fd /doc/api/stream.md
parent3a2e912b2d75730a7733200c953b59b98793ae81 (diff)
downloadandroid-node-v8-d6fc7e3af4f8888b0d80d73287314b14d3c7f86e.tar.gz
android-node-v8-d6fc7e3af4f8888b0d80d73287314b14d3c7f86e.tar.bz2
android-node-v8-d6fc7e3af4f8888b0d80d73287314b14d3c7f86e.zip
doc: enable eslint prefer-template rule
PR-URL: https://github.com/nodejs/node/pull/18831 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Matheus Marchini <matheus@sthima.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Michaƫl Zasso <targos@protonmail.com> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'doc/api/stream.md')
-rw-r--r--doc/api/stream.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/api/stream.md b/doc/api/stream.md
index c72873c466..20eaa95bc1 100644
--- a/doc/api/stream.md
+++ b/doc/api/stream.md
@@ -1852,7 +1852,7 @@ class Counter extends Readable {
if (i > this._max)
this.push(null);
else {
- const str = '' + i;
+ const str = String(i);
const buf = Buffer.from(str, 'ascii');
this.push(buf);
}