From 134625d76139b4b3630d5baaf2efccae01ede564 Mon Sep 17 00:00:00 2001 From: Eng Zer Jun Date: Wed, 6 Aug 2025 11:53:35 +0800 Subject: [PATCH] doc: fix grammar in global dispatcher usage Add missing preposition "by" to clarify how to change the global dispatcher. PR-URL: https://github.com/nodejs/node/pull/59344 Reviewed-By: Antoine du Hamel Reviewed-By: Luigi Pinca --- doc/api/globals.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/globals.md b/doc/api/globals.md index 1d9ea55f99a..7d272e127ce 100644 --- a/doc/api/globals.md +++ b/doc/api/globals.md @@ -537,7 +537,7 @@ The dispatcher must be compatible with `undici`'s fetch(url, { dispatcher: new MyAgent() }); ``` -It is possible to change the global dispatcher in Node.js installing `undici` and using +It is possible to change the global dispatcher in Node.js by installing `undici` and using the `setGlobalDispatcher()` method. Calling this method will affect both `undici` and Node.js.