This commit is contained in:
parent
509e2c52b0
commit
2faaabeacf
|
@ -26,7 +26,7 @@ fn addFive(n: u32) MyNumberError!u32 {
|
|||
// This function needs to return any error which might come back from detect().
|
||||
// Please use a "try" statement rather than a "catch".
|
||||
//
|
||||
var x = detect(n);
|
||||
var x = try detect(n);
|
||||
|
||||
return x + 5;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue