From 7d13f5e34f7a9e98b925d7fdf77ebfadb7ed17d8 Mon Sep 17 00:00:00 2001 From: Colin Ihrig Date: Thu, 7 Jul 2022 02:51:53 -0400 Subject: [PATCH] doc: remove extra 'in's 'when in an' -> 'when an' PR-URL: https://github.com/nodejs/node/pull/43705 Reviewed-By: Richard Lau Reviewed-By: Gireesh Punathil Reviewed-By: Luigi Pinca Reviewed-By: Antoine du Hamel --- doc/api/process.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/api/process.md b/doc/api/process.md index ecd53469ca4221..4b48a6590b7d2a 100644 --- a/doc/api/process.md +++ b/doc/api/process.md @@ -342,7 +342,7 @@ changes: * `err` {Error} The uncaught exception. * `origin` {string} Indicates if the exception originates from an unhandled rejection or from a synchronous error. Can either be `'uncaughtException'` or - `'unhandledRejection'`. The latter is used when in an exception happens in a + `'unhandledRejection'`. The latter is used when an exception happens in a `Promise` based async context (or if a `Promise` is rejected) and [`--unhandled-rejections`][] flag set to `strict` or `throw` (which is the default) and the rejection is not handled, or when a rejection happens during @@ -440,7 +440,7 @@ added: * `err` {Error} The uncaught exception. * `origin` {string} Indicates if the exception originates from an unhandled rejection or from synchronous errors. Can either be `'uncaughtException'` or - `'unhandledRejection'`. The latter is used when in an exception happens in a + `'unhandledRejection'`. The latter is used when an exception happens in a `Promise` based async context (or if a `Promise` is rejected) and [`--unhandled-rejections`][] flag set to `strict` or `throw` (which is the default) and the rejection is not handled, or when a rejection happens during