Skip to content

Commit d271cd1

Browse files
12yatshemsedinov
authored andcommitted
Update 3-counting.js
just typing error in the semaphore comment
1 parent 93b3322 commit d271cd1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

JavaScript/3-counting.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class CountingSemaphore {
2626

2727
if (isMainThread) {
2828
const buffer = new SharedArrayBuffer(4);
29-
// Try to change 10 to 2 at next lene to see problem
29+
// Try to change 10 to 2 at next line to see the problem
3030
const semaphore = new CountingSemaphore(buffer, 0, 10);
3131
console.dir({ semaphore: semaphore.counter[0] });
3232
for (let i = 0; i < 20; i++) {

0 commit comments

Comments
 (0)