From f851d9fbd85138691d543493f3897c92075700ef Mon Sep 17 00:00:00 2001 From: cjihrig Date: Fri, 27 Dec 2019 10:16:58 -0500 Subject: [PATCH] doc: update mode type for fs open() functions This commit updates the documentation for fs.open(), fs.openSync(), and fsPromises.open() to reflect the fact that their mode option can be a string. PR-URL: https://github.com/nodejs/node/pull/31115 Reviewed-By: Ruben Bridgewater Reviewed-By: Rich Trott Reviewed-By: David Carlier Reviewed-By: Luigi Pinca --- doc/api/fs.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/api/fs.md b/doc/api/fs.md index 8ad43dacaa1edb..0b1a1eae993a65 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -2601,7 +2601,7 @@ changes: * `path` {string|Buffer|URL} * `flags` {string|number} See [support of file system `flags`][]. **Default:** `'r'`. -* `mode` {integer} **Default:** `0o666` (readable and writable) +* `mode` {string|integer} **Default:** `0o666` (readable and writable) * `callback` {Function} * `err` {Error} * `fd` {integer} @@ -2693,7 +2693,7 @@ changes: * `path` {string|Buffer|URL} * `flags` {string|number} **Default:** `'r'`. See [support of file system `flags`][]. -* `mode` {integer} **Default:** `0o666` +* `mode` {string|integer} **Default:** `0o666` * Returns: {number} Returns an integer representing the file descriptor. @@ -4848,7 +4848,7 @@ changes: * `path` {string|Buffer|URL} * `flags` {string|number} See [support of file system `flags`][]. **Default:** `'r'`. -* `mode` {integer} **Default:** `0o666` (readable and writable) +* `mode` {string|integer} **Default:** `0o666` (readable and writable) * Returns: {Promise} Asynchronous file open that returns a `Promise` that, when resolved, yields a