From 57e5a3e15fa3ec3e6688f3463f30d2b8d228a5e6 Mon Sep 17 00:00:00 2001 From: Vse Mozhet Byt Date: Sun, 29 Apr 2018 12:49:56 +0300 Subject: [PATCH] doc: remove redundant empty lines PR-URL: https://github.com/nodejs/node/pull/20398 Reviewed-By: Gireesh Punathil Reviewed-By: Ruben Bridgewater --- doc/api/addons.md | 6 ----- doc/api/async_hooks.md | 5 ---- doc/api/child_process.md | 2 -- doc/api/cli.md | 56 ---------------------------------------- doc/api/console.md | 1 - doc/api/crypto.md | 1 - doc/api/dgram.md | 1 - doc/api/dns.md | 2 -- doc/api/errors.md | 1 - doc/api/events.md | 1 - doc/api/fs.md | 1 - doc/api/http.md | 2 -- doc/api/http2.md | 1 - doc/api/https.md | 6 ++--- doc/api/inspector.md | 1 - doc/api/modules.md | 1 - doc/api/perf_hooks.md | 2 -- doc/api/process.md | 6 ----- doc/api/querystring.md | 1 - doc/api/readline.md | 2 -- doc/api/stream.md | 1 - doc/api/timers.md | 1 - doc/api/tls.md | 4 --- doc/api/url.md | 1 - doc/api/util.md | 2 -- doc/api/vm.md | 1 - 26 files changed, 3 insertions(+), 106 deletions(-) diff --git a/doc/api/addons.md b/doc/api/addons.md index 3c4c7b39bedfeb..46bc1e7522c505 100644 --- a/doc/api/addons.md +++ b/doc/api/addons.md @@ -217,7 +217,6 @@ Addon developers are recommended to use to keep compatibility between past and future releases of V8 and Node.js. See the `nan` [examples][] for an illustration of how it can be used. - ## N-API > Stability: 1 - Experimental @@ -307,7 +306,6 @@ built using `node-gyp`: $ node-gyp configure build ``` - ### Function arguments Addons will typically expose objects and functions that can be accessed from @@ -381,7 +379,6 @@ const addon = require('./build/Release/addon'); console.log('This should be eight:', addon.add(3, 5)); ``` - ### Callbacks It is common practice within Addons to pass JavaScript functions to a C++ @@ -488,7 +485,6 @@ console.log(obj1.msg, obj2.msg); // Prints: 'hello world' ``` - ### Function factory Another common scenario is creating JavaScript functions that wrap C++ @@ -546,7 +542,6 @@ console.log(fn()); // Prints: 'hello world' ``` - ### Wrapping C++ objects It is also possible to wrap C++ objects/classes in a way that allows new @@ -916,7 +911,6 @@ console.log(obj2.plusOne()); // Prints: 23 ``` - ### Passing wrapped objects around In addition to wrapping and returning C++ objects, it is possible to pass diff --git a/doc/api/async_hooks.md b/doc/api/async_hooks.md index 2628cc290a5660..601dad93e75a57 100644 --- a/doc/api/async_hooks.md +++ b/doc/api/async_hooks.md @@ -141,7 +141,6 @@ future. This is subject to change in the future if a comprehensive analysis is performed to ensure an exception can follow the normal control flow without unintentional side effects. - ##### Printing in AsyncHooks callbacks Because printing to the console is an asynchronous operation, `console.log()` @@ -257,7 +256,6 @@ the new resource to initialize and that caused `init` to call. This is different from `async_hooks.executionAsyncId()` that only shows *when* a resource was created, while `triggerAsyncId` shows *why* a resource was created. - The following is a simple demonstration of `triggerAsyncId`: ```js @@ -395,7 +393,6 @@ API the user's callback is placed in a `process.nextTick()`. The graph only shows *when* a resource was created, not *why*, so to track the *why* use `triggerAsyncId`. - ##### before(asyncId) * `asyncId` {number} @@ -413,7 +410,6 @@ asynchronous resources like a TCP server will typically call the `before` callback multiple times, while other operations like `fs.open()` will call it only once. - ##### after(asyncId) * `asyncId` {number} @@ -424,7 +420,6 @@ If an uncaught exception occurs during execution of the callback, then `after` will run *after* the `'uncaughtException'` event is emitted or a `domain`'s handler runs. - ##### destroy(asyncId) * `asyncId` {number} diff --git a/doc/api/child_process.md b/doc/api/child_process.md index 6e26cd8be8d064..62b2355ee38803 100644 --- a/doc/api/child_process.md +++ b/doc/api/child_process.md @@ -456,7 +456,6 @@ ls.on('close', (code) => { }); ``` - Example: A very elaborate way to run `ps ax | grep ssh` ```js @@ -494,7 +493,6 @@ grep.on('close', (code) => { }); ``` - Example of checking for failed `spawn`: ```js diff --git a/doc/api/cli.md b/doc/api/cli.md index 5de5f0ff6fafd1..817f49142cb4c6 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -8,7 +8,6 @@ debugging, multiple ways to execute scripts, and other helpful runtime options. To view this documentation as a manual page in a terminal, run `man node`. - ## Synopsis `node [options] [V8 options] [script.js | -e "script" | -] [--] [arguments]` @@ -21,7 +20,6 @@ Execute without arguments to start the [REPL][]. _For more info about `node debug`, please see the [debugger][] documentation._ - ## Options ### `-` @@ -33,7 +31,6 @@ Alias for stdin, analogous to the use of - in other command line utilities, meaning that the script will be read from stdin, and the rest of the options are passed to that script. - ### `--` - The `Console` class can be used to create a simple logger with configurable diff --git a/doc/api/crypto.md b/doc/api/crypto.md index 562cb20a07cc6b..0f9d3c80b5347a 100644 --- a/doc/api/crypto.md +++ b/doc/api/crypto.md @@ -2602,7 +2602,6 @@ the `crypto`, `tls`, and `https` modules and are generally specific to OpenSSL. - [`Buffer`]: buffer.html [`EVP_BytesToKey`]: https://www.openssl.org/docs/man1.1.0/crypto/EVP_BytesToKey.html [`UV_THREADPOOL_SIZE`]: cli.html#cli_uv_threadpool_size_size diff --git a/doc/api/dgram.md b/doc/api/dgram.md index 06c15ffa25c879..b6b974541bdfe7 100644 --- a/doc/api/dgram.md +++ b/doc/api/dgram.md @@ -464,7 +464,6 @@ A socket's address family's ANY address (IPv4 `'0.0.0.0'` or IPv6 `'::'`) can be used to return control of the sockets default outgoing interface to the system for future multicast packets. - ### socket.setMulticastLoopback(flag) * `str` {string} - The `querystring.unescape()` method performs decoding of URL percent-encoded characters on the given `str`. diff --git a/doc/api/readline.md b/doc/api/readline.md index c1e50ef7eee350..d3afe5d9bf5ba2 100644 --- a/doc/api/readline.md +++ b/doc/api/readline.md @@ -320,7 +320,6 @@ added: v0.7.7 The `readline.clearLine()` method clears current line of given [TTY][] stream in a specified direction identified by `dir`. - ## readline.clearScreenDown(stream)