if2 solution

This commit is contained in:
mo8it
2024-05-22 15:16:50 +02:00
parent 7cdf6b7942
commit eafb157d60
3 changed files with 41 additions and 7 deletions
+4 -2
View File
@@ -209,8 +209,10 @@ name = "if2"
dir = "03_if"
hint = """
For that first compiler error, it's important in Rust that each conditional
block returns the same type! To get the tests passing, you will need a couple
conditions checking different input values."""
block returns the same type!
To get the tests passing, you will need a couple conditions checking different
input values. Read the tests to find out what they expect."""
[[exercises]]
name = "if3"