Fix example for Result.fold

Need to provide a type for the example to work