aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--content/go1.13-errors.article2
1 files changed, 1 insertions, 1 deletions
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: