Skip to content

Commit 1abaf5f

Browse files
committed
fix: result mismatch
1 parent cae3948 commit 1abaf5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const sum = add(1, 2);
99
console.log(`1 + 2 = ${sum}`);
1010

1111
const div = divide(4, 2);
12-
if (div.isErr()) {
12+
if (div.isError) {
1313
console.error(div.error.message);
1414
process.exit(1);
1515
}

0 commit comments

Comments
 (0)