From 2679f92aa858076af5da2af5ac89b5a0d2dc25ea Mon Sep 17 00:00:00 2001 From: John Guo Date: Thu, 10 Jun 2021 20:45:22 +0800 Subject: [PATCH] comment update for package gerror --- errors/gerror/gerror.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/errors/gerror/gerror.go b/errors/gerror/gerror.go index ce5bc0fc5..99b8b45fd 100644 --- a/errors/gerror/gerror.go +++ b/errors/gerror/gerror.go @@ -237,7 +237,7 @@ func WrapCodeSkipf(code, skip int, err error, format string, args ...interface{} } } -// Cause returns the error code of current error. +// Code returns the error code of current error. // It returns -1 if it has no error code or it does not implements interface Code. func Code(err error) int { if err != nil {