Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
semihbkgr committed Jun 17, 2023
1 parent 293d581 commit f53e5a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fault.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ func Wrap(err error, w ...Wrapper) error {
return nil
}

// The passed err might already have a location if it's a fault. New error, or it might not if it's another type of
// The passed err might already have a location if it's a 'fault.New' error, or it might not if it's another type of
// error like one from the standard library. Wrapping it in a container with an empty location ensures that the
// location will be reset when we flatten the error chain. If the error is a fault. New error, it will itself be
// location will be reset when we flatten the error chain. If the error is a 'fault.New' error, it will itself be
// wrapped in a container which will have a location.
if _, ok := err.(*container); !ok {
err = &container{
Expand Down

0 comments on commit f53e5a7

Please sign in to comment.