mirror of
https://codeberg.org/ziglings/exercises.git
synced 2024-12-26 09:30:31 +00:00
fixed failing test for ex. 024
This commit is contained in:
parent
6d60f7e33a
commit
54f2ace51a
1 changed files with 2 additions and 2 deletions
|
@ -1,10 +1,10 @@
|
|||
62c62,68
|
||||
< return detectProblems(n) ???
|
||||
< return detectProblems(n) ???
|
||||
---
|
||||
> return detectProblems(n) catch |err| {
|
||||
> if (err == MyNumberError.TooSmall) {
|
||||
> return 10;
|
||||
> }
|
||||
>
|
||||
>
|
||||
> return err;
|
||||
> };
|
||||
|
|
Loading…
Reference in a new issue