Skip to content

Commit

Permalink
doc: fix two sorting nits in fs.md
Browse files Browse the repository at this point in the history
PR-URL: #20078
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information
vsemozhetbyt authored and jasnell committed Apr 16, 2018
1 parent eca96f5 commit fc0ddaa
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions doc/api/fs.md
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,13 @@ fs.watch('./tmp', { encoding: 'buffer' }, (eventType, filename) => {
});
```

### Event: 'close'
<!-- YAML
added: REPLACEME
-->

Emitted when the watcher stops watching for changes.

### Event: 'error'
<!-- YAML
added: v0.5.8
Expand All @@ -329,13 +336,6 @@ added: v0.5.8

Emitted when an error occurs while watching the file.

### Event: 'close'
<!-- YAML
added: REPLACEME
-->

Emitted when the watcher stops watching for changes.

### watcher.close()
<!-- YAML
added: v0.5.8
Expand Down Expand Up @@ -3465,13 +3465,6 @@ use a simple numeric file descriptor, all `fsPromises.*` variations use the
`FileHandle` class in order to help protect against accidental leaking of
unclosed file descriptors after a `Promise` is resolved or rejected.

#### filehandle.fd
<!-- YAML
added: REPLACEME
-->

* {number} The numeric file descriptor managed by the `FileHandle` object.

#### filehandle.appendFile(data, options)
<!-- YAML
added: REPLACEME
Expand Down Expand Up @@ -3544,6 +3537,13 @@ added: REPLACEME
Asynchronous fdatasync(2). The `Promise` is resolved with no arguments upon
success.

#### filehandle.fd
<!-- YAML
added: REPLACEME
-->

* {number} The numeric file descriptor managed by the `FileHandle` object.

#### filehandle.read(buffer, offset, length, position)
<!-- YAML
added: REPLACEME
Expand Down

0 comments on commit fc0ddaa

Please sign in to comment.