From 823c9b70c727e2efaa6dfd8e97551c31b45ff666 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20K=C3=B6ssler?= Date: Mon, 10 Mar 2025 22:25:56 +0100 Subject: [PATCH] doc: fix usage of module.registerSync in comment PR-URL: https://github.com/nodejs/node/pull/57328 Reviewed-By: Jacob Smith Reviewed-By: Luigi Pinca Reviewed-By: James M Snell --- doc/api/module.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/module.md b/doc/api/module.md index f1e2c72d42..69e34f1cdc 100644 --- a/doc/api/module.md +++ b/doc/api/module.md @@ -1226,7 +1226,7 @@ opt-in to using the non-default behavior: import { readFile } from 'node:fs/promises'; // Asynchronous version accepted by module.register(). This fix is not needed -// for the synchronous version accepted by module.registerSync(). +// for the synchronous version accepted by module.registerHooks(). export async function load(url, context, nextLoad) { const result = await nextLoad(url, context); if (result.format === 'commonjs') {