summaryrefslogtreecommitdiff
path: root/info.toml
diff options
context:
space:
mode:
authorliv <mokou@fastmail.com>2023-07-04 11:57:11 +0200
committerGitHub <noreply@github.com>2023-07-04 11:57:11 +0200
commit6cc34fa1f7d9cebffcf9cb0d19023e1b890213d7 (patch)
tree627d49750b2bcd61abedad847ef3d8bb7eda9897 /info.toml
parentc5b0627180ae98c41f67e345b2a16ca14a6cffd1 (diff)
parent287172698aea106723682542e011b64f3d6d218a (diff)
Merge pull request #1588 from jrcarl624/main
added if3 based on: `Using if in a let Statement`
Diffstat (limited to 'info.toml')
-rw-r--r--info.toml7
1 files changed, 7 insertions, 0 deletions
diff --git a/info.toml b/info.toml
index e4863cb..e8a28cb 100644
--- a/info.toml
+++ b/info.toml
@@ -167,6 +167,13 @@ 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."""
+[[exercises]]
+name = "if3"
+path = "exercises/if/if3.rs"
+mode = "test"
+hint = """
+In Rust, every arm of an `if` expression has to return the same type of value. Make sure the type is consistent across all arms."""
+
# QUIZ 1
[[exercises]]