Skip to content

Commit 823c9b7

Browse files
authored
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 7a1b26e commit 823c9b7

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
@@ -1226,7 +1226,7 @@ opt-in to using the non-default behavior:
12261226
import { readFile } from 'node:fs/promises';
12271227

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

0 commit comments

Comments
 (0)