From c74a92b468441230502580f044f7102a177c6d89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20K=C3=B6ssler?= Date: Wed, 5 Mar 2025 14:43:58 +0100 Subject: [PATCH] doc: fix usage of module.registerSync in comment --- 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 f1e2c72d4298d3..69e34f1cdcf512 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') {