diff options
author | saadq <saad@saadquadri.com> | 2016-07-14 22:41:29 -0700 |
---|---|---|
committer | Lance Ball <lball@redhat.com> | 2016-07-15 13:51:58 -0400 |
commit | 28d9485c25a0ddeb8817525e25d4c7bb1ee5013b (patch) | |
tree | bfcfa4f9b6b79c10fe9548ff54ee653a36e848ca /doc/api/readline.md | |
parent | bb9eabec40ed95e0193d08bf3f9b16d774904a17 (diff) | |
download | android-node-v8-28d9485c25a0ddeb8817525e25d4c7bb1ee5013b.tar.gz android-node-v8-28d9485c25a0ddeb8817525e25d4c7bb1ee5013b.tar.bz2 android-node-v8-28d9485c25a0ddeb8817525e25d4c7bb1ee5013b.zip |
doc: fix inconsistencies in code style
Adds missing semicolons, removes extra white space, and properly indents
various code snippets in the documentation.
Reviewed-By: Evan Lucas <evanlucas@me.com>
Reviewed-By: targos - Michaƫl Zasso <mic.besace@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/7745
Diffstat (limited to 'doc/api/readline.md')
-rw-r--r-- | doc/api/readline.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/api/readline.md b/doc/api/readline.md index 3855409083..9025f6fe7d 100644 --- a/doc/api/readline.md +++ b/doc/api/readline.md @@ -398,10 +398,10 @@ For instance: `[[substr1, substr2, ...], originalsubstring]`. ```js function completer(line) { - var completions = '.help .error .exit .quit .q'.split(' ') - var hits = completions.filter((c) => { return c.indexOf(line) == 0 }) + var completions = '.help .error .exit .quit .q'.split(' '); + var hits = completions.filter((c) => { return c.indexOf(line) == 0 }); // show all completions if none found - return [hits.length ? hits : completions, line] + return [hits.length ? hits : completions, line]; } ``` |