We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 73d71e4 commit 01fa410Copy full SHA for 01fa410
errors.go
@@ -2,9 +2,9 @@
2
//
3
// The traditional error handling idiom in Go is roughly akin to
4
5
-// if err != nil {
6
-// return err
7
-// }
+// if err != nil {
+// return err
+// }
8
9
// which applied recursively up the call stack results in error reports
10
// without context or debugging information. The errors package allows
@@ -16,10 +16,10 @@
16
// The errors.Wrap function returns a new error that adds context to the
17
// original error. For example
18
19
-// _, err := ioutil.ReadAll(r)
20
21
-// return errors.Wrap(err, "read failed")
22
+// _, err := ioutil.ReadAll(r)
+// return errors.Wrap(err, "read failed")
23
24
// Retrieving the cause of an error
25
0 commit comments