Skip to content

Commit

Permalink
doc: small grammar correction
Browse files Browse the repository at this point in the history
This commit improves the grammar of one sentence in the ESM
documentation.

PR-URL: #28669
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
cjihrig authored and targos committed Jul 20, 2019
1 parent df0f42a commit 638c8a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/api/esm.md
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit 638c8a3

Please sign in to comment.