diff options
Diffstat (limited to 'doc/api')
-rw-r--r-- | doc/api/fs.md | 2 | ||||
-rw-r--r-- | doc/api/http2.md | 2 | ||||
-rw-r--r-- | doc/api/process.md | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/doc/api/fs.md b/doc/api/fs.md index df5ef2bacf..1d244ea21d 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 <!-- YAML diff --git a/doc/api/http2.md b/doc/api/http2.md index acd985ede9..3279fa6cf0 100644 --- a/doc/api/http2.md +++ b/doc/api/http2.md @@ -439,7 +439,7 @@ payload. session.ping(Buffer.from('abcdefgh'), (err, duration, payload) => { if (!err) { console.log(`Ping acknowledged in ${duration} milliseconds`); - console.log(`With payload '${payload.toString()}`); + console.log(`With payload '${payload.toString()}'`); } }); ``` diff --git a/doc/api/process.md b/doc/api/process.md index f413748cfa..608c5ab6fd 100644 --- a/doc/api/process.md +++ b/doc/api/process.md @@ -211,7 +211,7 @@ changes: a process warning. --> -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 |