From 3cca4735c4115038d0be678fbda411c63d629674 Mon Sep 17 00:00:00 2001 From: andriyDev Date: Tue, 21 Jan 2025 08:15:13 -0800 Subject: [PATCH] Add return statements to the Fibonacci exercise. (#2576) At this point in the course, we have not explained return statements. Better to have it set up to avoid questions! --- src/types-and-values/exercise.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/types-and-values/exercise.md b/src/types-and-values/exercise.md index f12aec7c..467353bc 100644 --- a/src/types-and-values/exercise.md +++ b/src/types-and-values/exercise.md @@ -14,10 +14,10 @@ this function panic? {{#include exercise.rs:fib}} if n < 2 { // The base case. - todo!("Implement this") + return todo!("Implement this"); } else { // The recursive case. - todo!("Implement this") + return todo!("Implement this"); } }