GeezerVison is showing github.com — doc: update mode type for fs open() functions · nodejs/node@5948ff4
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: doc/api/fs.md +3-3Lines changed: 3 additions & 3 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -2601,7 +2601,7 @@ changes: |
2601 | 2601 | * `path` {string|Buffer|URL} |
2602 | 2602 | * `flags` {string|number} See [support of file system `flags`][]. |
2603 | 2603 | **Default:** `'r'`. |
2604 | | -* `mode` {integer} **Default:** `0o666` (readable and writable) |
| 2604 | +* `mode` {string|integer} **Default:** `0o666` (readable and writable) |
2605 | 2605 | * `callback` {Function} |
2606 | 2606 | * `err` {Error} |
2607 | 2607 | * `fd` {integer} |
@@ -2693,7 +2693,7 @@ changes: |
2693 | 2693 | * `path` {string|Buffer|URL} |
2694 | 2694 | * `flags` {string|number} **Default:** `'r'`. |
2695 | 2695 | See [support of file system `flags`][]. |
2696 | | -* `mode` {integer} **Default:** `0o666` |
| 2696 | +* `mode` {string|integer} **Default:** `0o666` |
2697 | 2697 | * Returns: {number} |
2698 | 2698 |
|
2699 | 2699 | Returns an integer representing the file descriptor. |
@@ -4848,7 +4848,7 @@ changes: |
4848 | 4848 | * `path` {string|Buffer|URL} |
4849 | 4849 | * `flags` {string|number} See [support of file system `flags`][]. |
4850 | 4850 | **Default:** `'r'`. |
4851 | | -* `mode` {integer} **Default:** `0o666` (readable and writable) |
| 4851 | +* `mode` {string|integer} **Default:** `0o666` (readable and writable) |
4852 | 4852 | * Returns: {Promise} |
4853 | 4853 |
|
4854 | 4854 | Asynchronous file open that returns a `Promise` that, when resolved, yields a |
|