@@ -1706,7 +1706,7 @@ changes:
1706
1706
parameter in case of success.
1707
1707
- version: v5.0.0
1708
1708
pr-url: https://github.com/nodejs/node/pull/3163
1709
- description: The `file ` parameter can be a file descriptor now.
1709
+ description: The `path ` parameter can be a file descriptor now.
1710
1710
-->
1711
1711
1712
1712
* ` path ` {string|Buffer|URL|integer} filename or file descriptor
@@ -1766,15 +1766,15 @@ changes:
1766
1766
protocol. Support is currently still *experimental*.
1767
1767
- version: v5.0.0
1768
1768
pr-url: https://github.com/nodejs/node/pull/3163
1769
- description: The `file ` parameter can be a file descriptor now.
1769
+ description: The `path ` parameter can be a file descriptor now.
1770
1770
-->
1771
1771
1772
1772
* ` path ` {string|Buffer|URL|integer} filename or file descriptor
1773
1773
* ` options ` {Object|string}
1774
1774
* ` encoding ` {string|null} default = ` null `
1775
1775
* ` flag ` {string} default = ` 'r' `
1776
1776
1777
- Synchronous version of [ ` fs.readFile ` ] [ ] . Returns the contents of the ` file ` .
1777
+ Synchronous version of [ ` fs.readFile() ` ] [ ] . Returns the contents of the ` path ` .
1778
1778
1779
1779
If the ` encoding ` option is specified then this function returns a
1780
1780
string. Otherwise it returns a buffer.
@@ -2838,7 +2838,8 @@ The following constants are meant for use with the [`fs.Stats`][] object's
2838
2838
[ `fs.mkdtemp()` ] : #fs_fs_mkdtemp_prefix_options_callback
2839
2839
[ `fs.open()` ] : #fs_fs_open_path_flags_mode_callback
2840
2840
[ `fs.read()` ] : #fs_fs_read_fd_buffer_offset_length_position_callback
2841
- [ `fs.readFile` ] : #fs_fs_readfile_file_options_callback
2841
+ [ `fs.readFile()` ] : #fs_fs_readfile_path_options_callback
2842
+ [ `fs.readFileSync()` ] : #fs_fs_readfilesync_path_options
2842
2843
[ `fs.stat()` ] : #fs_fs_stat_path_callback
2843
2844
[ `fs.utimes()` ] : #fs_fs_utimes_path_atime_mtime_callback
2844
2845
[ `fs.watch()` ] : #fs_fs_watch_filename_options_listener
0 commit comments