Skip to content
This repository was archived by the owner on Aug 25, 2025. It is now read-only.

Commit 3b1a27e

Browse files
authored
Merge pull request #146 from rhysd/patch-1
Prefer const to let persistently
2 parents cde26ad + a3f3f4b commit 3b1a27e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/game-of-life/implementing.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -721,8 +721,8 @@ encourage you to go learn about hashlife on your own!
721721

722722
```js
723723
const bitIsSet = (n, arr) => {
724-
let byte = Math.floor(n / 8);
725-
let mask = 1 << (n % 8);
724+
const byte = Math.floor(n / 8);
725+
const mask = 1 << (n % 8);
726726
return (arr[byte] & mask) === mask;
727727
};
728728
```

0 commit comments

Comments
 (0)