Skip to content

doc: fix two sorting nits in fs.md #20078

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

Closed
wants to merge 1 commit into from
Closed
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
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