summaryrefslogtreecommitdiff
path: root/doc/api/esm.md
diff options
context:
space:
mode:
authorEric Whitebloom <ewhitebloom@gmail.com>2019-01-24 22:28:19 -0500
committerAnna Henningsen <anna@addaleax.net>2019-01-28 18:39:18 +0100
commit34bc69d376eeaec4ad145ecfb5b56167c2cbe4d9 (patch)
treed9f4942a248565727ce0cbf3a48c1f2623c1c32a /doc/api/esm.md
parentb218b1204aa9f85dba953733be253fdf92a4ae91 (diff)
downloadnode-new-34bc69d376eeaec4ad145ecfb5b56167c2cbe4d9.tar.gz
doc: fix file extension on ESM file example
PR-URL: https://github.com/nodejs/node/pull/25692 Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'doc/api/esm.md')
-rw-r--r--doc/api/esm.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/api/esm.md b/doc/api/esm.md
index bed1dd7b92..e81a69c6ed 100644
--- a/doc/api/esm.md
+++ b/doc/api/esm.md
@@ -98,7 +98,7 @@ representing the value of `module.exports` at the time they finished evaluating.
// foo.js
module.exports = { one: 1 };
-// bar.js
+// bar.mjs
import foo from './foo.js';
foo.one === 1; // true
```