Skip to content

Commit 77668ff

Browse files
timokoesslertargos
authored andcommitted
doc: fix usage of module.registerSync in comment
PR-URL: #57328 Reviewed-By: Jacob Smith <jacob@frende.me> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 9b4f7aa commit 77668ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/module.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1218,7 +1218,7 @@ opt-in to using the non-default behavior:
12181218
import { readFile } from 'node:fs/promises';
12191219

12201220
// Asynchronous version accepted by module.register(). This fix is not needed
1221-
// for the synchronous version accepted by module.registerSync().
1221+
// for the synchronous version accepted by module.registerHooks().
12221222
export async function load(url, context, nextLoad) {
12231223
const result = await nextLoad(url, context);
12241224
if (result.format === 'commonjs') {

0 commit comments

Comments
 (0)