Skip to content

Commit ef1af44

Browse files
committed
test: fix func return type
1 parent 8aea85e commit ef1af44

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ import (
77
. "github.com/initdc/types/result"
88
)
99

10-
func Div(a, b int) Result[int, rune] {
10+
func Div(a, b int) *Result[int, rune] {
1111
if b == 0 {
1212
return Err[int]('E')
1313
}
1414
return Ok[int, rune](a / b)
1515
}
1616

17-
func closure(r rune) Result[float32, string] {
17+
func closure(r rune) *Result[float32, string] {
1818
goto clean
1919

2020
clean:

0 commit comments

Comments
 (0)