(x float32)
| 7 | ) |
| 8 | |
| 9 | func StringError(x float32) Result[float32, string] { |
| 10 | if x == 0.0 { |
| 11 | return Err[float32, string]("zero") |
| 12 | } else { |
| 13 | return Ok[float32, string](x) |
| 14 | } |
| 15 | } |
| 16 | |
| 17 | func EnumError(x float32) Result[float32, E] { |
| 18 | if x == 0.0 { |
no outgoing calls
no test coverage detected