Skip to content

Commit 73e40f0

Browse files
fansworld-claudiorvagg
fansworld-claudio
authored andcommitted
docs: fs - change links to buffer encoding to Buffer class anchor
PR-URL: #2796 Reviewed-By: Trevor Norris <[email protected]> Reviewed-By: Roman Reiss <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 7a84fa6 commit 73e40f0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

doc/api/fs.markdown

+3-2
Original file line numberDiff line numberDiff line change
@@ -828,7 +828,7 @@ default value of 64 kb for the same parameter.
828828

829829
`options` can include `start` and `end` values to read a range of bytes from
830830
the file instead of the entire file. Both `start` and `end` are inclusive and
831-
start at 0. The `encoding` can be any one of those accepted by [Buffer](buffer.html).
831+
start at 0. The `encoding` can be any one of those accepted by [Buffer][].
832832

833833
If `fd` is specified, `ReadStream` will ignore the `path` argument and will use
834834
the specified file descriptor. This means that no `open` event will be emitted.
@@ -873,7 +873,7 @@ Returns a new WriteStream object (See `Writable Stream`).
873873
`options` may also include a `start` option to allow writing data at
874874
some position past the beginning of the file. Modifying a file rather
875875
than replacing it may require a `flags` mode of `r+` rather than the
876-
default mode `w`. The `defaultEncoding` can be any one of those accepted by [Buffer](buffer.html).
876+
default mode `w`. The `defaultEncoding` can be any one of those accepted by [Buffer][].
877877

878878
Like `ReadStream` above, if `fd` is specified, `WriteStream` will ignore the
879879
`path` argument and will use the specified file descriptor. This means that no
@@ -923,3 +923,4 @@ Emitted when an error occurs.
923923
[fs.access]: #fs_fs_access_path_mode_callback
924924
[fs.statSync]: #fs_fs_statsync_path
925925
[fs.accessSync]: #fs_fs_accesssync_path_mode
926+
[Buffer]: buffer.html#buffer_buffer

0 commit comments

Comments
 (0)