Files
node/doc/api
Vse Mozhet Byt 7108893ec8 doc: clarify fs.write[Sync]() descriptions
1. All default values for optional `encoding` parameters
   were documented except for the one in `fs.write(fd, string...)`
   method. This PR makes up this deficiency.

2. We have two variants of `fs.write()` / `fs.writeSync()` methods:
   for buffers and strings. Currently, the sync methods have only one
   common reference to the full description of async methods.
   However, the link may seem to belong to the last sync variant only
   (for strings) and, as it refers to the first async variant
   (for buffers), this may be confusing. This PR makes two different
   sync variants refer to two different async variants.

3. In passing, both returned values of sync methods were also made
   more concise and unambiguous.

PR-URL: https://github.com/nodejs/node/pull/22402
Refs: https://github.com/nodejs/node/blob/a04f2f7df630427bf869b1e04040975b752973b6/lib/fs.js#L549
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
2018-08-19 21:52:14 +03:00
..
2018-08-04 10:04:32 +02:00
2018-07-14 22:57:03 +03:00
2018-08-18 11:15:37 +03:00
2018-08-16 11:52:38 +10:00
2018-07-15 23:57:35 +03:00
2018-06-27 11:37:17 -04:00
2018-05-03 02:12:07 +03:00
2018-07-15 23:57:35 +03:00
2018-08-16 11:52:38 +10:00
2018-07-14 22:57:03 +03:00
2018-07-16 00:04:56 +03:00
2018-07-14 22:57:03 +03:00
2018-07-14 22:57:03 +03:00
2018-05-03 02:12:07 +03:00
2018-05-02 06:17:08 +03:00
2018-07-14 22:57:03 +03:00
2018-07-14 22:57:03 +03:00
2018-07-15 23:57:35 +03:00
2018-08-15 17:39:59 +02:00
2018-07-15 23:57:35 +03:00