Skip to content
This repository was archived by the owner on Dec 1, 2021. It is now read-only.

Commit 3a4fafe

Browse files
nmiyakedavecheney
authored andcommitted
Fix comment on WithMessage function (#86)
1 parent 1398fbc commit 3a4fafe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

errors.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ func Wrapf(err error, format string, args ...interface{}) error {
202202
}
203203

204204
// WithMessage annotates err with a new message.
205-
// If err is nil, WithStack returns nil.
205+
// If err is nil, WithMessage returns nil.
206206
func WithMessage(err error, message string) error {
207207
if err == nil {
208208
return nil

0 commit comments

Comments
 (0)