From 8dfe5d07b4957483bfc6687a9c5d7d578d0a2fc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Jos=C3=A9=20Arboleda?= Date: Thu, 26 Dec 2019 13:48:53 -0500 Subject: [PATCH 1/3] doc: remove extra space on fs docs --- doc/api/fs.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/fs.md b/doc/api/fs.md index 11f03c8a2caac7..661f32f7e36c17 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -4044,7 +4044,7 @@ changes: * `err` {Error} When `file` is a filename, asynchronously writes data to the file, replacing the -file if it already exists. `data` can be a string or a buffer. +file if it already exists. `data` can be a string or a buffer. When `file` is a file descriptor, the behavior is similar to calling `fs.write()` directly (which is recommended). See the notes below on using From 55524c23de93548a33a59448e82bb2d792e0ac15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Jos=C3=A9=20Arboleda?= Date: Thu, 26 Dec 2019 13:59:45 -0500 Subject: [PATCH 2/3] doc: fs.write is not longer coercing strings --- doc/api/fs.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/fs.md b/doc/api/fs.md index 661f32f7e36c17..c13c398b6d8468 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -3982,7 +3982,7 @@ changes: * `string` {string} Write `string` to the file specified by `fd`. If `string` is not a string, then -the value will be coerced to one. +a exception will be thrown. `position` refers to the offset from the beginning of the file where this data should be written. If `typeof position !== 'number'` the data will be written at From 2e29ecb16f2c8cb996f0c41b5932bf6495ece335 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Jos=C3=A9=20Arboleda?= Date: Thu, 26 Dec 2019 16:45:58 -0500 Subject: [PATCH 3/3] fixup --- doc/api/fs.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/fs.md b/doc/api/fs.md index c13c398b6d8468..114ecfa97c0056 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -3982,7 +3982,7 @@ changes: * `string` {string} Write `string` to the file specified by `fd`. If `string` is not a string, then -a exception will be thrown. +an exception will be thrown. `position` refers to the offset from the beginning of the file where this data should be written. If `typeof position !== 'number'` the data will be written at