From 46537b0d26da97c8ea0977e87bbf419097b2a725 Mon Sep 17 00:00:00 2001 From: Yann Salaün <1910607+yansal@users.noreply.github.com> Date: Thu, 17 Oct 2019 22:24:53 +0000 Subject: content: fix typo in blog post on Go 1.13 errors Change-Id: I61fd0cb7dc3e6f17089501d729f680a044ddf13f GitHub-Last-Rev: 4211f342552079574f1616c5ce2fcc5ca2d921a5 GitHub-Pull-Request: golang/blog#25 Reviewed-on: https://go-review.googlesource.com/c/blog/+/201837 Reviewed-by: Brad Fitzpatrick --- content/go1.13-errors.article | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'content/go1.13-errors.article') diff --git a/content/go1.13-errors.article b/content/go1.13-errors.article index 904b0eb..32e18eb 100644 --- a/content/go1.13-errors.article +++ b/content/go1.13-errors.article @@ -314,7 +314,7 @@ do not return the underlying error directly. // DoSomething returns an error wrapping ErrPermission if the user // does not have permission to do something. - func DoSomething() { + func DoSomething() error { if !userHasPermission() { // If we return ErrPermission directly, callers might come // to depend on the exact error value, writing code like this: -- cgit v1.2.3