diff options
| author | Taylor Yu <tlyu@mit.edu> | 2021-06-06 20:14:29 -0500 |
|---|---|---|
| committer | Taylor Yu <tlyu@mit.edu> | 2021-06-06 23:08:54 -0500 |
| commit | 50ab289da6b9eb19a7486c341b00048c516b88c0 (patch) | |
| tree | 162c10c44aa5119007c8b7d958d2806a6cb07ed7 /info.toml | |
| parent | a2f0401c4c4be9ac326714f55fee454db22c0862 (diff) | |
fix: rename result1 to errors4
Also put it in the ERROR HANDLING section where it probably belongs.
Diffstat (limited to 'info.toml')
| -rw-r--r-- | info.toml | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -490,6 +490,15 @@ hint = """ If other functions can return a `Result`, why shouldn't `main`?""" [[exercises]] +name = "errors4" +path = "exercises/error_handling/errors4.rs" +mode = "test" +hint = """ +`PositiveNonzeroInteger::new` is always creating a new instance and returning an `Ok` result. +It should be doing some checking, returning an `Err` result if those checks fail, and only +returning an `Ok` result if those checks determine that everything is... okay :)""" + +[[exercises]] name = "errorsn" path = "exercises/error_handling/errorsn.rs" mode = "test" @@ -561,7 +570,7 @@ ReportCard struct generic, but also the correct property - you will need to chan of the struct slightly too...you can do it! """ -# OPTIONS / RESULTS +# OPTIONS [[exercises]] name = "option1" @@ -603,15 +612,6 @@ statement. How can this be avoided? The compiler shows the correction needed. After making the correction as suggested by the compiler, do read: https://doc.rust-lang.org/std/keyword.ref.html""" -[[exercises]] -name = "result1" -path = "exercises/error_handling/result1.rs" -mode = "test" -hint = """ -`PositiveNonzeroInteger::new` is always creating a new instance and returning an `Ok` result. -It should be doing some checking, returning an `Err` result if those checks fail, and only -returning an `Ok` result if those checks determine that everything is... okay :)""" - # TRAITS [[exercises]] |
