Skip to content

Commit f6feee9

Browse files
committed
Slight tweaks to wording
1 parent d2eea41 commit f6feee9

File tree

9 files changed

+25
-25
lines changed

9 files changed

+25
-25
lines changed

examples/custom-errors/custom-errors.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// It's possible to use custom types as `error`s by
1+
// It's possible to define custom error types by
22
// implementing the `Error()` method on them. Here's a
33
// variant on the example above that uses a custom type
44
// to explicitly represent an argument error.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
e63d61872edce05ea3ec797958eff48d1decfbd8
2-
qKKTjmc6SuB
1+
560ba2e87e0a2b1b8b07dd7b81152da0af88f97b
2+
6oW6K8iylu-

examples/errors/errors.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// In Go it's idiomatic to communicate errors via an
22
// explicit, separate return value. This contrasts with
3-
// the exceptions used in languages like Java and Ruby and
4-
// the overloaded single result / error value sometimes
5-
// used in C. Go's approach makes it easy to see which
6-
// functions return errors and to handle them using the
7-
// same language constructs employed for other,
3+
// the exceptions used in languages like Java, Python and
4+
// Ruby and the overloaded single result / error value
5+
// sometimes used in C. Go's approach makes it easy to
6+
// see which functions return errors and to handle them
7+
// using the same language constructs employed for other,
88
// non-error tasks.
99
//
1010
// See the documentation of the [errors package](https://pkg.go.dev/errors)
@@ -56,7 +56,7 @@ func makeTea(arg int) error {
5656
func main() {
5757
for _, i := range []int{7, 42} {
5858

59-
// It's common to use an inline error check in the `if`
59+
// It's idiomatic to use an inline error check in the `if`
6060
// line.
6161
if r, e := f(i); e != nil {
6262
fmt.Println("f failed:", e)

examples/errors/errors.hash

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
805db04c4efb743792093f6dd7fbb6828be59cc2
2-
j6odYuFpOeb
1+
36c6f61252233bdc5d9645f2a372338f7c6fe446
2+
ycKDxFlusrP

examples/spawning-processes/spawning-processes.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Sometimes our Go programs need to spawn other, non-Go
1+
// Sometimes our Go programs need to spawn other
22
// processes.
33

44
package main
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
3020b65601d80e67c575785c8d2616163a0423a5
2-
uOmOn18nMDw
1+
b3cd5b25049dd2ce6e2a2c8bd58a21ed7a20104b
2+
bFqSoJG9bKR

public/custom-errors

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/errors

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/spawning-processes

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)