diff --git a/doc/api/fs.md b/doc/api/fs.md index df5ef2bacf98dc..1d244ea21dd93e 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -3427,7 +3427,7 @@ Synchronous versions of [`fs.write()`][]. Returns the number of bytes written. The `fs/promises` API provides an alternative set of asynchronous file system methods that return `Promise` objects rather than using callbacks. The -API is accessible via `require('fs/promises)`. +API is accessible via `require('fs/promises')`. ### class: FileHandle -The `'unhandledRejection`' event is emitted whenever a `Promise` is rejected and +The `'unhandledRejection'` event is emitted whenever a `Promise` is rejected and no error handler is attached to the promise within a turn of the event loop. When programming with Promises, exceptions are encapsulated as "rejected promises". Rejections can be caught and handled using [`promise.catch()`][] and