Skip to content

Commit

Permalink
docs: fix invalid return value in "Returning errors" example. (#199)
Browse files Browse the repository at this point in the history
  • Loading branch information
ffenix113 authored Aug 11, 2021
1 parent 6198684 commit 16bee8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/Custom-Functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ func main() {
if i < 0 {
return 0, errors.New("value cannot be less than zero")
}
return i * 2
return i * 2, nil
},
}

Expand Down

0 comments on commit 16bee8c

Please sign in to comment.