Skip to content

Commit a11aed5

Browse files
authored
Make dynamic and static import examples consistent
This was probably a small factor in my confusion in #17.
1 parent dd64692 commit a11aed5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Developers will then be able to import the bytes as follows:
1616

1717
```js
1818
import bytes from "./photo.png" with { type: "bytes" };
19-
import("./photo.png", { with: { type: "bytes" } });
19+
const bytes = import("./photo.png", { with: { type: "bytes" } });
2020
```
2121

2222
The bytes are returned as a `Uint8Array` backed by an [immutable arraybuffer](https://github.com/tc39/proposal-immutable-arraybuffer).

0 commit comments

Comments
 (0)