Skip to content

Commit d7830a2

Browse files
committed
chore: updates
1 parent ebd28ec commit d7830a2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/language/scripts.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import scripts from "./scripts.json" assert { type: "json" };
1+
import scripts from "./scripts.json" with { type: "json" };
22

33
import { reduce } from "./reduce.ts";
44

5-
export function characterCount(script: typeof scripts[number]) {
5+
export function characterCount(script: (typeof scripts)[number]) {
66
return reduce(script.ranges, (count, [from, to]) => count + (to - from), 0);
77
}
88

src/program_structure/buzzfizz.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
function fizzBuzzExpected(max: number) {
1+
export function fizzBuzzer(max: number) {
22
return Array.from({ length: max }, (_, i) => {
33
const n = i + 1;
44

0 commit comments

Comments
 (0)