From 3e1dd5597cce45fa7ef6aeb8889ddbd27927c4b4 Mon Sep 17 00:00:00 2001 From: Сковорода Никита Андреевич Date: Sat, 31 Mar 2018 12:17:49 +0300 Subject: doc: fix quotes mistypes in inline code blocks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This fixes trivial invalid quotes mistypes in inline code blocks, e.g. forgotten quotes or mixed order. Whether this could be easily automatically checked in lint is a separate question: e.g. `'` is valid. PR-URL: https://github.com/nodejs/node/pull/19713 Reviewed-By: Vse Mozhet Byt Reviewed-By: Richard Lau Reviewed-By: Luigi Pinca Reviewed-By: Colin Ihrig Reviewed-By: Tobias Nießen Reviewed-By: Tiancheng "Timothy" Gu Reviewed-By: Trivikram Kamat --- doc/api/fs.md | 2 +- doc/api/http2.md | 2 +- doc/api/process.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'doc/api') 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 -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 -- cgit v1.2.3