From 362817b15a4a6aa89b976d15a39f161744e3d3c2 Mon Sep 17 00:00:00 2001 From: Paul Scarrone Date: Mon, 20 Feb 2023 13:16:16 -0500 Subject: [PATCH] functions 5 --- exercises/functions/functions5.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/exercises/functions/functions5.rs b/exercises/functions/functions5.rs index 5d762961..ee8210ab 100644 --- a/exercises/functions/functions5.rs +++ b/exercises/functions/functions5.rs @@ -1,13 +1,11 @@ // functions5.rs // Execute `rustlings hint functions5` or use the `hint` watch subcommand for a hint. -// I AM NOT DONE - fn main() { let answer = square(3); println!("The square of 3 is {}", answer); } fn square(num: i32) -> i32 { - num * num; + num * num }