From 638c8a394cfc6547ecc9bec6397f87b9ca8d513c Mon Sep 17 00:00:00 2001 From: cjihrig Date: Sat, 13 Jul 2019 11:49:23 -0400 Subject: [PATCH] doc: small grammar correction MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit improves the grammar of one sentence in the ESM documentation. PR-URL: https://github.com/nodejs/node/pull/28669 Reviewed-By: Luigi Pinca Reviewed-By: Anna Henningsen Reviewed-By: Rich Trott Reviewed-By: Jiawen Geng Reviewed-By: Tobias Nießen Reviewed-By: James M Snell --- doc/api/esm.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/api/esm.md b/doc/api/esm.md index 8b7b632f1cdad7..74d818946e007c 100644 --- a/doc/api/esm.md +++ b/doc/api/esm.md @@ -278,8 +278,8 @@ These CommonJS variables are not available in ES modules. `require` can be imported into an ES module using [`module.createRequire()`][]. -An equivalent for variable `__filename` and `__dirname` can be created inside -each file with [`import.meta.url`][]. +Equivalents of `__filename` and `__dirname` can be created inside of each file +via [`import.meta.url`][]. ```js import { fileURLToPath } from 'url';