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>
This commit is contained in:
Rich Trott authored and Michaël Zasso committed 2022-07-31 09:43:47 +02:00
1 parent 806711346d
commit b6c23b0312
1 file changed
+1 -1
+1 -1
View File
@@ -196,7 +196,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