Skip to content

Commit f50ca02

Browse files
committed
docs: fix usage of module.registerSync in comment
1 parent 4e222ae commit f50ca02

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)