summaryrefslogtreecommitdiff
path: root/exercises/03_if
diff options
context:
space:
mode:
authormo8it <mo8it@proton.me>2024-05-22 15:04:12 +0200
committermo8it <mo8it@proton.me>2024-05-22 15:04:12 +0200
commit3bb71c6b0c9d58e421f79d914f5483cb5a98af0b (patch)
tree3b28edae9903c24212be1aa54d5d0e7bd69bedfa /exercises/03_if
parentd0b843d6c4a99636d3dc6caf3ceebea14cb3b07d (diff)
Remove unneeded pub
Diffstat (limited to 'exercises/03_if')
-rw-r--r--exercises/03_if/if1.rs4
-rw-r--r--exercises/03_if/if2.rs2
-rw-r--r--exercises/03_if/if3.rs2
3 files changed, 4 insertions, 4 deletions
diff --git a/exercises/03_if/if1.rs b/exercises/03_if/if1.rs
index 52dee0b..e5a3c5a 100644
--- a/exercises/03_if/if1.rs
+++ b/exercises/03_if/if1.rs
@@ -1,5 +1,5 @@
-pub fn bigger(a: i32, b: i32) -> i32 {
- // Complete this function to return the bigger number!
+fn bigger(a: i32, b: i32) -> i32 {
+ // TODO: Complete this function to return the bigger number!
// If both numbers are equal, any of them can be returned.
// Do not use:
// - another function call
diff --git a/exercises/03_if/if2.rs b/exercises/03_if/if2.rs
index a06bba5..d834ab2 100644
--- a/exercises/03_if/if2.rs
+++ b/exercises/03_if/if2.rs
@@ -1,7 +1,7 @@
// Step 1: Make me compile!
// Step 2: Get the bar_for_fuzz and default_to_baz tests passing!
-pub fn foo_if_fizz(fizzish: &str) -> &str {
+fn foo_if_fizz(fizzish: &str) -> &str {
if fizzish == "fizz" {
"foo"
} else {
diff --git a/exercises/03_if/if3.rs b/exercises/03_if/if3.rs
index 1d9b7c2..ff6fee6 100644
--- a/exercises/03_if/if3.rs
+++ b/exercises/03_if/if3.rs
@@ -1,4 +1,4 @@
-pub fn animal_habitat(animal: &str) -> &'static str {
+fn animal_habitat(animal: &str) -> &'static str {
let identifier = if animal == "crab" {
1
} else if animal == "gopher" {