From 3b3aaa0a374bdd86f900cbb55b5b6a0c8f444afb 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 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Refs: https://github.com/nodejs/node/pull/37468 PR-URL: https://github.com/nodejs/node/pull/40275 Reviewed-By: Luigi Pinca Reviewed-By: Derek Lewis Reviewed-By: Juan José Arboleda Reviewed-By: Benjamin Gruenbaum Reviewed-By: Zijian Liu Reviewed-By: James M Snell --- 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 06eae239c3abcd..59e55b0e3bff0a 100644 --- a/doc/api/esm.md +++ b/doc/api/esm.md @@ -974,7 +974,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) => {