Skip to content

Commit

Permalink
Rename to sum_to
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianGCalderon committed Apr 18, 2024
1 parent a4834eb commit fbe93b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/for_while.con
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
mod Example {
fn main() -> i64 {
return sum_to_twice(4);
return sum_to(4);
}

fn sum_to_twice(limit: i64) -> i64 {
fn sum_to(limit: i64) -> i64 {
let mut result: i64 = 0;

let n: i64 = 1;
Expand Down

0 comments on commit fbe93b2

Please sign in to comment.