From 4e8226757bd3855df9567db493aa2a05d256583f Mon Sep 17 00:00:00 2001 From: ffenix113 Date: Wed, 11 Aug 2021 09:33:01 +0200 Subject: [PATCH] docs: fix invalid return value in "Returning errors" example. --- docs/Custom-Functions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/Custom-Functions.md b/docs/Custom-Functions.md index 133383f77..dd5f3d8d8 100644 --- a/docs/Custom-Functions.md +++ b/docs/Custom-Functions.md @@ -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 }, }