From a4a4d870f430308eec9cdb94782babded6d6daf2 Mon Sep 17 00:00:00 2001 From: Daijiro Wachi Date: Sun, 26 Apr 2026 23:31:09 +0900 Subject: [PATCH] doc: fix "cancelation" in fs, globals, and stream --- doc/api/fs.md | 4 ++-- doc/api/globals.md | 2 +- doc/api/webstreams.md | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/api/fs.md b/doc/api/fs.md index b2231bd20cc420..a5e8488b33efdf 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -2213,7 +2213,7 @@ passed to it. For performance sensitive code consider using [`fs.createWriteStream()`][] or [`filehandle.createWriteStream()`][]. It is possible to use an {AbortSignal} to cancel an `fsPromises.writeFile()`. -Cancelation is "best effort", and some amount of data is likely still +Cancellation is "best effort", and some amount of data is likely still to be written. ```mjs @@ -5562,7 +5562,7 @@ performs multiple `write` calls internally to write the buffer passed to it. For performance sensitive code consider using [`fs.createWriteStream()`][]. It is possible to use an {AbortSignal} to cancel an `fs.writeFile()`. -Cancelation is "best effort", and some amount of data is likely still +Cancellation is "best effort", and some amount of data is likely still to be written. ```mjs diff --git a/doc/api/globals.md b/doc/api/globals.md index 6c0caca06d3dbb..043a29a316b640 100644 --- a/doc/api/globals.md +++ b/doc/api/globals.md @@ -41,7 +41,7 @@ changes: description: No longer experimental. --> -A utility class used to signal cancelation in selected `Promise`-based APIs. +A utility class used to signal cancellation in selected `Promise`-based APIs. The API is based on the Web API {AbortController}. ```js diff --git a/doc/api/webstreams.md b/doc/api/webstreams.md index 55b27584361e1c..e7c5e89288c469 100644 --- a/doc/api/webstreams.md +++ b/doc/api/webstreams.md @@ -175,7 +175,7 @@ added: v16.5.0 --> * `reason` {any} -* Returns: A promise fulfilled with `undefined` once cancelation has +* Returns: A promise fulfilled with `undefined` once cancellation has been completed. #### `readableStream.getReader([options])`