doc: small grammar correction

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 <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>
This commit is contained in:
cjihrig authored and Michaël Zasso committed 2019-07-20 11:13:03 +02:00
1 parent df0f42ab7f
commit 638c8a394c
1 file changed
+2 -2
+2 -2
View File
@@ -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';