Merge pull request #1248 from datawolf/fix-the-outdated-comment

Fix the outdated comment for Error interface
This commit is contained in:
Mrunal Patel 2017-01-09 11:14:07 -08:00 committed by GitHub
commit 11f6c37e75
1 changed files with 3 additions and 3 deletions

View File

@ -60,9 +60,9 @@ func (c ErrorCode) String() string {
type Error interface {
error
// Returns a verbose string including the error message
// and a representation of the stack trace suitable for
// printing.
// Returns an error if it failed to write the detail of the Error to w.
// The detail of the Error may include the error message and a
// representation of the stack trace.
Detail(w io.Writer) error
// Returns the error code for this error.