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 <duhamelantoine1995@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
Eng Zer Jun 2025-08-06 11:53:35 +08:00 committed by GitHub
parent 09c906ade8
commit 134625d761
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -537,7 +537,7 @@ The dispatcher must be compatible with `undici`'s
fetch(url, { dispatcher: new MyAgent() }); 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 the `setGlobalDispatcher()` method. Calling this method will affect both `undici` and
Node.js. Node.js.