ソースを参照

Fix comment on WithMessage function (#86)

Nick Miyake 9 年 前
コミット
3a4fafe48b
1 ファイル変更1 行追加1 行削除
  1. 1 1
      errors.go

+ 1 - 1
errors.go

@@ -202,7 +202,7 @@ func Wrapf(err error, format string, args ...interface{}) error {
 }
 
 // WithMessage annotates err with a new message.
-// If err is nil, WithStack returns nil.
+// If err is nil, WithMessage returns nil.
 func WithMessage(err error, message string) error {
 	if err == nil {
 		return nil