From 9f0ba2ad9d9699040873e209f9b7041e45a82681 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Nie=C3=9Fen?= Date: Fri, 1 Oct 2021 11:40:23 +0200 Subject: [PATCH] doc: fix typo in ESM example Refs: https://github.com/nodejs/node/pull/37468 --- doc/api/esm.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/esm.md b/doc/api/esm.md index 9ec67330000907..952ee35f5b4500 100644 --- a/doc/api/esm.md +++ b/doc/api/esm.md @@ -979,7 +979,7 @@ async function getPackageType(url) { // Compose a file path to a package.json in the same directory, // which may or may not exist const packagePath = resolvePath(dir, 'package.json'); - // Try to read the possibly non-existant package.json + // Try to read the possibly nonexistent package.json const type = await readFile(packagePath, { encoding: 'utf8' }) .then((filestring) => JSON.parse(filestring).type) .catch((err) => {