From 1a796c68452ebd0216b474d618c672daf2f5d9e1 Mon Sep 17 00:00:00 2001 From: SimonFJ20 Date: Fri, 22 Nov 2024 09:25:03 +0100 Subject: [PATCH] add main --- surveys/flame_graph/README.md | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/surveys/flame_graph/README.md b/surveys/flame_graph/README.md index c3243b2..d0ac1fa 100644 --- a/surveys/flame_graph/README.md +++ b/surveys/flame_graph/README.md @@ -8,14 +8,16 @@ fn add(a, b) { + a b } -let result = 0; -let i = 0; -loop { - if >= i 10 { - break; +fn main() { + let result = 0; + let i = 0; + loop { + if >= i 10 { + break; + } + result = add(result, 5); + i = + i 1; } - result = add(result, 5); - i = + i 1; } ```