diff options
| author | mokou <mokou@fastmail.com> | 2022-07-14 18:02:33 +0200 |
|---|---|---|
| committer | mokou <mokou@fastmail.com> | 2022-07-14 18:02:33 +0200 |
| commit | c34e2adcbb261f71fbd013d61257457dd84bd849 (patch) | |
| tree | e8552f6f6419a26fb4d77d7be12f153023666418 /info.toml | |
| parent | 5e1ca4b99577578a1c92d71eeba49d88f60dcedc (diff) | |
feat(errors): Improve comments and hints
Diffstat (limited to 'info.toml')
| -rw-r--r-- | info.toml | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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" |
