Skip to content

Commit 16bee8c

Browse files
authored
docs: fix invalid return value in "Returning errors" example. (#199)
1 parent 6198684 commit 16bee8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/Custom-Functions.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ func main() {
154154
if i < 0 {
155155
return 0, errors.New("value cannot be less than zero")
156156
}
157-
return i * 2
157+
return i * 2, nil
158158
},
159159
}
160160

0 commit comments

Comments
 (0)