Merge pull request #5 from umairidris/master

gofmt and typo fix
This commit is contained in:
Dave Cheney 2016-04-25 07:30:45 +09:00
commit 326f4a44f3
2 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@
// Retrieving the cause of an error // Retrieving the cause of an error
// //
// Using errors.Wrap constructs a stack of errors, adding context to the // Using errors.Wrap constructs a stack of errors, adding context to the
// preceeding error. Depending on the nature of the error it may be necessary // preceding error. Depending on the nature of the error it may be necessary
// to recerse the operation of errors.Wrap to retrieve the original error // to recerse the operation of errors.Wrap to retrieve the original error
// for inspection. Any error value which implements this interface // for inspection. Any error value which implements this interface
// //

View File

@ -17,7 +17,7 @@ func TestNew(t *testing.T) {
{"", fmt.Errorf("")}, {"", fmt.Errorf("")},
{"foo", fmt.Errorf("foo")}, {"foo", fmt.Errorf("foo")},
{"foo", New("foo")}, {"foo", New("foo")},
{"string with format specifiers: %v", errors.New("string with format specifiers: %v")}, {"string with format specifiers: %v", errors.New("string with format specifiers: %v")},
} }
for _, tt := range tests { for _, tt := range tests {