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

Commit 784931b

Browse files
committed
rename errors.New parameter to message
1 parent 9a4f977 commit 784931b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

errors.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,10 @@ func (e _error) Format(s fmt.State, verb rune) {
108108
}
109109
}
110110

111-
// New returns an error that formats as the given text.
112-
func New(text string) error {
111+
// New returns an error with the supplied message.
112+
func New(message string) error {
113113
return _error{
114-
text,
114+
message,
115115
callers(),
116116
}
117117
}

0 commit comments

Comments
 (0)