diff options
author | Rich Trott <rtrott@gmail.com> | 2022-04-14 14:24:20 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-14 14:24:20 +0300 |
commit | a058cefe2963714fe2d1563e03efe3766fa61e69 (patch) | |
tree | 319ad420f474baefcefd27e59db22a96ae6c1a18 /doc/api/esm.md | |
parent | e61b62b9d4a7a648496cc5d1539e1111bd2737e9 (diff) |
doc: fix ESM JSON/data URL import example
PR-URL: https://github.com/nodejs/node/pull/42728
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Beth Griggs <bgriggs@redhat.com>
Diffstat (limited to 'doc/api/esm.md')
-rw-r--r-- | doc/api/esm.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/api/esm.md b/doc/api/esm.md index 90cca55946b..c0f7e5fe3f7 100644 --- a/doc/api/esm.md +++ b/doc/api/esm.md @@ -200,7 +200,7 @@ URLs being used is: ```js import 'data:text/javascript,console.log("hello!");'; -import _ from 'data:application/json,"world!"'; +import _ from 'data:application/json,"world!"' assert { type: 'json' }; ``` #### `node:` Imports |