Skip to content

Commit 1fee8ba

Browse files
committed
fixed misspelling in word 'transferable'
1 parent 936fc0f commit 1fee8ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

greenlet.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export default function greenlet(asyncFunction) {
1717
userFunc.apply.bind(userFunc, userFunc)
1818
).then(
1919
// success handler - callback(id, SUCCESS(0), result)
20-
// if `d` is transferrable transfer zero-copy
20+
// if `d` is transferable transfer zero-copy
2121
d => {
2222
postMessage([e.data[0], 0, d], (
2323
d instanceof ArrayBuffer ||
@@ -61,7 +61,7 @@ export default function greenlet(asyncFunction) {
6161
promises[++currentId] = arguments;
6262

6363
// Send an RPC call to the worker - call(id, params)
64-
// The filter is to provide a list of transferrables to send zero-copy
64+
// The filter is to provide a list of transferables to send zero-copy
6565
worker.postMessage([currentId, args], args.filter(x => (
6666
x instanceof ArrayBuffer ||
6767
x instanceof MessagePort ||

0 commit comments

Comments
 (0)