Skip to content

Commit 3e79a9a

Browse files
authored
Fix typo in README.md (#13)
1 parent 735c601 commit 3e79a9a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ action.
4040

4141
```js
4242
import {Worker} from 'node:worker_threads';
43-
import {SyncMessagePort} from 'sync-message-port;
43+
import {SyncMessagePort} from 'sync-message-port';
4444
// or
4545
// const {SyncMessagePort} = require('sync-message-port');
4646

@@ -50,7 +50,7 @@ const channel = SyncMessagePort.createChannel();
5050
const localPort = new SyncMessagePort(channel.port1);
5151

5252
const worker = new Worker(`
53-
import {workerData} = require('node:worker_threads');
53+
import {workerData} from 'node:worker_threads';
5454
import {SyncMessagePort} from 'sync-message-port';
5555
5656
const remotePort = new SyncMessagePort(workerData.port);

0 commit comments

Comments
 (0)