Skip to content

Commit 57e5a3e

Browse files
vsemozhetbytMylesBorins
authored andcommitted
doc: remove redundant empty lines
PR-URL: #20398 Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
1 parent 9cf3ae5 commit 57e5a3e

26 files changed

+3
-106
lines changed

doc/api/addons.md

-6
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,6 @@ Addon developers are recommended to use to keep compatibility between past and
217217
future releases of V8 and Node.js. See the `nan` [examples][] for an
218218
illustration of how it can be used.
219219

220-
221220
## N-API
222221

223222
> Stability: 1 - Experimental
@@ -307,7 +306,6 @@ built using `node-gyp`:
307306
$ node-gyp configure build
308307
```
309308

310-
311309
### Function arguments
312310

313311
Addons will typically expose objects and functions that can be accessed from
@@ -381,7 +379,6 @@ const addon = require('./build/Release/addon');
381379
console.log('This should be eight:', addon.add(3, 5));
382380
```
383381

384-
385382
### Callbacks
386383

387384
It is common practice within Addons to pass JavaScript functions to a C++
@@ -488,7 +485,6 @@ console.log(obj1.msg, obj2.msg);
488485
// Prints: 'hello world'
489486
```
490487

491-
492488
### Function factory
493489

494490
Another common scenario is creating JavaScript functions that wrap C++
@@ -546,7 +542,6 @@ console.log(fn());
546542
// Prints: 'hello world'
547543
```
548544

549-
550545
### Wrapping C++ objects
551546

552547
It is also possible to wrap C++ objects/classes in a way that allows new
@@ -916,7 +911,6 @@ console.log(obj2.plusOne());
916911
// Prints: 23
917912
```
918913

919-
920914
### Passing wrapped objects around
921915

922916
In addition to wrapping and returning C++ objects, it is possible to pass

doc/api/async_hooks.md

-5
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,6 @@ future. This is subject to change in the future if a comprehensive analysis is
141141
performed to ensure an exception can follow the normal control flow without
142142
unintentional side effects.
143143

144-
145144
##### Printing in AsyncHooks callbacks
146145

147146
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
257256
from `async_hooks.executionAsyncId()` that only shows *when* a resource was
258257
created, while `triggerAsyncId` shows *why* a resource was created.
259258

260-
261259
The following is a simple demonstration of `triggerAsyncId`:
262260

263261
```js
@@ -395,7 +393,6 @@ API the user's callback is placed in a `process.nextTick()`.
395393
The graph only shows *when* a resource was created, not *why*, so to track
396394
the *why* use `triggerAsyncId`.
397395

398-
399396
##### before(asyncId)
400397

401398
* `asyncId` {number}
@@ -413,7 +410,6 @@ asynchronous resources like a TCP server will typically call the `before`
413410
callback multiple times, while other operations like `fs.open()` will call
414411
it only once.
415412

416-
417413
##### after(asyncId)
418414

419415
* `asyncId` {number}
@@ -424,7 +420,6 @@ If an uncaught exception occurs during execution of the callback, then `after`
424420
will run *after* the `'uncaughtException'` event is emitted or a `domain`'s
425421
handler runs.
426422

427-
428423
##### destroy(asyncId)
429424

430425
* `asyncId` {number}

doc/api/child_process.md

-2
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,6 @@ ls.on('close', (code) => {
456456
});
457457
```
458458

459-
460459
Example: A very elaborate way to run `ps ax | grep ssh`
461460

462461
```js
@@ -494,7 +493,6 @@ grep.on('close', (code) => {
494493
});
495494
```
496495

497-
498496
Example of checking for failed `spawn`:
499497

500498
```js

0 commit comments

Comments
 (0)