Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit eabe907

Browse filesBrowse files
timrufflestargos
authored andcommitted
doc: fix descriptions of sync methods in fs.md
PR-URL: #21747 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Jon Moss <me@jonathanmoss.me> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
1 parent 8191563 commit eabe907
Copy full SHA for eabe907

File tree

Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed
Open diff view settings
Collapse file

‎doc/api/fs.md‎

Copy file name to clipboardExpand all lines: doc/api/fs.md
+3-3Lines changed: 3 additions & 3 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -2331,7 +2331,7 @@ Synchronous readdir(3).
23312331

23322332
The optional `options` argument can be a string specifying an encoding, or an
23332333
object with an `encoding` property specifying the character encoding to use for
2334-
the filenames passed to the callback. If the `encoding` is set to `'buffer'`,
2334+
the filenames returned. If the `encoding` is set to `'buffer'`,
23352335
the filenames returned will be passed as `Buffer` objects.
23362336

23372337
## fs.readFile(path[, options], callback)
@@ -2503,7 +2503,7 @@ Synchronous readlink(2). Returns the symbolic link's string value.
25032503

25042504
The optional `options` argument can be a string specifying an encoding, or an
25052505
object with an `encoding` property specifying the character encoding to use for
2506-
the link path passed to the callback. If the `encoding` is set to `'buffer'`,
2506+
the link path returned. If the `encoding` is set to `'buffer'`,
25072507
the link path returned will be passed as a `Buffer` object.
25082508

25092509
## fs.readSync(fd, buffer, offset, length, position)
@@ -2661,7 +2661,7 @@ Only paths that can be converted to UTF8 strings are supported.
26612661

26622662
The optional `options` argument can be a string specifying an encoding, or an
26632663
object with an `encoding` property specifying the character encoding to use for
2664-
the path passed to the callback. If the `encoding` is set to `'buffer'`,
2664+
the path returned. If the `encoding` is set to `'buffer'`,
26652665
the path returned will be passed as a `Buffer` object.
26662666

26672667
On Linux, when Node.js is linked against musl libc, the procfs file system must

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.