Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: remove redundant empty lines #20398

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions doc/api/addons.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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++
Expand Down Expand Up @@ -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++
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
5 changes: 0 additions & 5 deletions doc/api/async_hooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -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()`
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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}
Expand All @@ -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}
Expand All @@ -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}
Expand Down
2 changes: 0 additions & 2 deletions doc/api/child_process.md
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,6 @@ ls.on('close', (code) => {
});
```


Example: A very elaborate way to run `ps ax | grep ssh`

```js
Expand Down Expand Up @@ -494,7 +493,6 @@ grep.on('close', (code) => {
});
```


Example of checking for failed `spawn`:

```js
Expand Down
Loading