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

Commit

Permalink
Align code example documentation (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
djui authored and davecheney committed Jun 13, 2016
1 parent 73d71e4 commit 01fa410
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
//
// The traditional error handling idiom in Go is roughly akin to
//
// if err != nil {
// return err
// }
// if err != nil {
// return err
// }
//
// which applied recursively up the call stack results in error reports
// without context or debugging information. The errors package allows
Expand All @@ -16,10 +16,10 @@
// The errors.Wrap function returns a new error that adds context to the
// original error. For example
//
// _, err := ioutil.ReadAll(r)
// if err != nil {
// return errors.Wrap(err, "read failed")
// }
// _, err := ioutil.ReadAll(r)
// if err != nil {
// return errors.Wrap(err, "read failed")
// }
//
// Retrieving the cause of an error
//
Expand Down

0 comments on commit 01fa410

Please sign in to comment.