From 84d9a85c0d75ac28931662f0dd3337aee1bdb49d Mon Sep 17 00:00:00 2001 From: Polycarbohydrate <169401794+Polycarbohydrate@users.noreply.github.com> Date: Tue, 4 Mar 2025 19:42:40 -0500 Subject: [PATCH 1/3] Added comment for clarity Added comment on lines 5 and 6 to explain why we changed 2.0 to 2 in the exercise. --- solutions/03_if/if3.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/solutions/03_if/if3.rs b/solutions/03_if/if3.rs index 571644d4..d03d9057 100644 --- a/solutions/03_if/if3.rs +++ b/solutions/03_if/if3.rs @@ -2,6 +2,8 @@ fn animal_habitat(animal: &str) -> &str { let identifier = if animal == "crab" { 1 } else if animal == "gopher" { + // all branches of an if expression must return the same type + // so we change from f64 to i32 2 } else if animal == "snake" { 3 From c9aa2994a6189409dd09c99e4ac35bf11a72344a Mon Sep 17 00:00:00 2001 From: Polycarbohydrate <169401794+Polycarbohydrate@users.noreply.github.com> Date: Wed, 5 Mar 2025 17:13:49 -0500 Subject: [PATCH 2/3] Create async exercise Create async exercise --- exercises/async | 1 + 1 file changed, 1 insertion(+) create mode 100644 exercises/async diff --git a/exercises/async b/exercises/async new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/exercises/async @@ -0,0 +1 @@ + From 5a30006f46a01ea295c64a584600818f6111c8ec Mon Sep 17 00:00:00 2001 From: Polycarbohydrate <169401794+Polycarbohydrate@users.noreply.github.com> Date: Wed, 5 Mar 2025 17:14:18 -0500 Subject: [PATCH 3/3] Delete exercises/async --- exercises/async | 1 - 1 file changed, 1 deletion(-) delete mode 100644 exercises/async diff --git a/exercises/async b/exercises/async deleted file mode 100644 index 8b137891..00000000 --- a/exercises/async +++ /dev/null @@ -1 +0,0 @@ -