◐ Shell
clean mode source ↗

doc: fix usage of module.registerSync in comment · nodejs/node@77668ff

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') {