From 1c843d4ac50bb13124c6ca12d0514bbaae1e502d Mon Sep 17 00:00:00 2001 From: Dave Cheney Date: Sun, 24 Apr 2016 20:57:12 +0900 Subject: [PATCH] spelling --- README.md | 4 ++-- errors.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 7c6e2b6..b4a043a 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Package errors implements functions for manipulating errors. -The tranditional error handling idiom in Go is roughly akin to +The traditional error handling idiom in Go is roughly akin to ``` if err != nil { return err @@ -23,7 +23,7 @@ In addition, errors.Wrap records the file and line where it was called, allowing ## Retrieving the cause of an error -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 to recerse the operation of errors.Wrap to retrieve the original error for inspection. Any error value which implements this interface +Using errors.Wrap constructs a stack of errors, adding context to the preceding error. Depending on the nature of the error it may be necessary to recurse the operation of errors.Wrap to retrieve the original error for inspection. Any error value which implements this interface ``` type causer interface { Cause() error diff --git a/errors.go b/errors.go index f266de2..01a0ec7 100644 --- a/errors.go +++ b/errors.go @@ -1,6 +1,6 @@ // Package errors implements functions for manipulating errors. // -// The tranditional error handling idiom in Go is roughly akin to +// The traditional error handling idiom in Go is roughly akin to // // if err != nil { // return err