From fbe93b2b84d750e282fbc09ded8d2463f4e939a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juli=C3=A1n=20Gonz=C3=A1lez=20Calder=C3=B3n?= Date: Thu, 18 Apr 2024 18:33:57 -0300 Subject: [PATCH] Rename to sum_to --- examples/for_while.con | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/for_while.con b/examples/for_while.con index 2f3612d..d87f1d7 100644 --- a/examples/for_while.con +++ b/examples/for_while.con @@ -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;