summaryrefslogtreecommitdiff
path: root/doc/api/fs.md
diff options
context:
space:
mode:
authorNick Schonning <nschonni@gmail.com>2019-08-29 09:28:03 -0400
committerRich Trott <rtrott@gmail.com>2019-08-31 15:31:13 -0700
commit9ab1e07774b0c38a66e29f4b0b257ded8ee04d08 (patch)
tree4aa8dbb551d8baa96a6c22e44eb9a39e73f579bf /doc/api/fs.md
parentee8f02b0d752ecf2dfa044deb246e75283d1ca1d (diff)
downloadandroid-node-v8-9ab1e07774b0c38a66e29f4b0b257ded8ee04d08.tar.gz
android-node-v8-9ab1e07774b0c38a66e29f4b0b257ded8ee04d08.tar.bz2
android-node-v8-9ab1e07774b0c38a66e29f4b0b257ded8ee04d08.zip
doc: add blanks around code fences
Addresses Markdownlint MD031 rule warnings PR-URL: https://github.com/nodejs/node/pull/29366 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: David Carlier <devnexen@gmail.com>
Diffstat (limited to 'doc/api/fs.md')
-rw-r--r--doc/api/fs.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/api/fs.md b/doc/api/fs.md
index 0d17c5deb4..a045f45418 100644
--- a/doc/api/fs.md
+++ b/doc/api/fs.md
@@ -231,6 +231,7 @@ fs.readFileSync(new URL('file:///p/a/t/h/%2f'));
/* TypeError [ERR_INVALID_FILE_URL_PATH]: File URL path must not include encoded
/ characters */
```
+
On Windows, `file:` URLs having encoded backslash will result in a throw:
```js
@@ -3815,6 +3816,7 @@ recommended.
When `file` is a file descriptor, the behavior is almost identical to directly
calling `fs.write()` like:
+
```javascript
fs.write(fd, Buffer.from(data, options.encoding), callback);
```