summaryrefslogtreecommitdiff
path: root/info.toml
diff options
context:
space:
mode:
authormokou <mokou@fastmail.com>2022-07-14 18:02:33 +0200
committermokou <mokou@fastmail.com>2022-07-14 18:02:33 +0200
commitc34e2adcbb261f71fbd013d61257457dd84bd849 (patch)
treee8552f6f6419a26fb4d77d7be12f153023666418 /info.toml
parent5e1ca4b99577578a1c92d71eeba49d88f60dcedc (diff)
feat(errors): Improve comments and hints
Diffstat (limited to 'info.toml')
-rw-r--r--info.toml5
1 files changed, 4 insertions, 1 deletions
diff --git a/info.toml b/info.toml
index 97c174f..cb49a97 100644
--- a/info.toml
+++ b/info.toml
@@ -603,7 +603,10 @@ name = "errors3"
path = "exercises/error_handling/errors3.rs"
mode = "compile"
hint = """
-If other functions can return a `Result`, why shouldn't `main`?"""
+If other functions can return a `Result`, why shouldn't `main`? It's a fairly common
+convention to return something like Result<(), ErrorType> from your main function.
+The unit (`()`) type is there because nothing is really needed in terms of positive
+results."""
[[exercises]]
name = "errors4"