diff options
author | Vse Mozhet Byt <vsemozhetbyt@gmail.com> | 2017-04-21 17:38:31 +0300 |
---|---|---|
committer | Vse Mozhet Byt <vsemozhetbyt@gmail.com> | 2017-04-25 00:06:00 +0300 |
commit | e2c3e4727d5899a709f5c421e128a4af2ef626f3 (patch) | |
tree | da562d9848f3b66dddd2f244972a5cbc672fda20 /doc/api/readline.md | |
parent | b6d293d2158c66a3edbb86c0c43b4c51af3484f7 (diff) | |
download | android-node-v8-e2c3e4727d5899a709f5c421e128a4af2ef626f3.tar.gz android-node-v8-e2c3e4727d5899a709f5c421e128a4af2ef626f3.tar.bz2 android-node-v8-e2c3e4727d5899a709f5c421e128a4af2ef626f3.zip |
doc: conform to rules for eslint-plugin-markdown
PR-URL: https://github.com/nodejs/node/pull/12563
Refs: https://github.com/nodejs/node/pull/12557#issuecomment-296015032
Reviewed-By: Teddy Katz <teddy.katz@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Timothy Gu <timothygu99@gmail.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com>
Diffstat (limited to 'doc/api/readline.md')
-rw-r--r-- | doc/api/readline.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/api/readline.md b/doc/api/readline.md index acd052bb1a..b4c0df9f43 100644 --- a/doc/api/readline.md +++ b/doc/api/readline.md @@ -414,7 +414,7 @@ For instance: `[[substr1, substr2, ...], originalsubstring]`. ```js function completer(line) { const completions = '.help .error .exit .quit .q'.split(' '); - const hits = completions.filter((c) => { return c.indexOf(line) === 0 }); + const hits = completions.filter((c) => { return c.indexOf(line) === 0; }); // show all completions if none found return [hits.length ? hits : completions, line]; } @@ -492,7 +492,7 @@ const rl = readline.createInterface({ rl.prompt(); rl.on('line', (line) => { - switch(line.trim()) { + switch (line.trim()) { case 'hello': console.log('world!'); break; |