Skip to content

Commit

Permalink
update adder example
Browse files Browse the repository at this point in the history
  • Loading branch information
dfirebaugh committed Jan 30, 2024
1 parent 514fcd2 commit e5537f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/adder/adder.pn
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ bool is_eq(i32 a, i32 b) {
}

pub i32 add_two(i32 x, i32 y) {
return (x + y)
return x + y
}

pub i32 add_four(i32 a, i32 b, i32 c, i32 d) {
if !!is_eq(a, 2) {
if 1 != 1 {
return a - b - c - d
}
return a + b + c + d
Expand Down

0 comments on commit e5537f7

Please sign in to comment.