From 1e516bf0a50ae10d5081bde108e6389f8f2b9676 Mon Sep 17 00:00:00 2001 From: david Date: Thu, 13 Jun 2024 16:46:44 +0200 Subject: [PATCH] solution to exercise 02_02 --- exercises/02_basic_calculator/02_variables/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/02_basic_calculator/02_variables/src/lib.rs b/exercises/02_basic_calculator/02_variables/src/lib.rs index e8d1167..8e5de3f 100644 --- a/exercises/02_basic_calculator/02_variables/src/lib.rs +++ b/exercises/02_basic_calculator/02_variables/src/lib.rs @@ -8,7 +8,7 @@ pub fn speed(start: u32, end: u32, time_elapsed: u32) -> u32 { // TODO: define a variable named `distance` with the right value to get tests to pass // Do you need to annotate the type of `distance`? Why or why not? - + let distance: u32 = end - start; // Don't change the line below distance / time_elapsed }