diff --git a/doc/api/fs.md b/doc/api/fs.md index 82bb47a2116b4c..7f782b1d1ecf8b 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -4253,17 +4253,13 @@ added: v10.0.0 * `data` {string|Buffer} * `options` {Object|string} * `encoding` {string|null} **Default:** `'utf8'` - * `mode` {integer} **Default:** `0o666` - * `flag` {string} See [support of file system `flags`][]. **Default:** `'a'`. * Returns: {Promise} -Asynchronously append data to this file, creating the file if it does not yet -exist. `data` can be a string or a [`Buffer`][]. The `Promise` will be -resolved with no arguments upon success. +Alias of [`filehandle.writeFile()`][]. -If `options` is a string, then it specifies the encoding. - -The `FileHandle` must have been opened for appending. +When operating on file handles, the mode cannot be changed from what it was set +to with [`fsPromises.open()`][]. Therefore, this is equivalent to +[`filehandle.writeFile()`][]. #### `filehandle.chmod(mode)`