Skip to content

Commit 72504d2

Browse files
timokoessleraduh95
authored andcommitted
doc: fix usage of module.registerSync in comment
PR-URL: #57328 Reviewed-By: Jacob Smith <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 6c4bbcc commit 72504d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/module.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1370,7 +1370,7 @@ opt-in to using the non-default behavior:
13701370
import { readFile } from 'node:fs/promises';
13711371

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

0 commit comments

Comments
 (0)