diff --git a/examples/errors/errors.go b/examples/errors/errors.go index 48ee27e..72a20b0 100644 --- a/examples/errors/errors.go +++ b/examples/errors/errors.go @@ -23,7 +23,7 @@ func f1(arg int) (int, error) { } - // A nil value in the error position indicates that + // A `nil` value in the error position indicates that // there was no error. return arg + 3, nil } @@ -74,7 +74,7 @@ func main() { } // If you want to programmatically use the data in - // a custom error, you'll need to get the error as an + // a custom error, you'll need to get the error as an // instance of the custom error type via type // assertion. _, e := f2(42) diff --git a/examples/errors/errors.hash b/examples/errors/errors.hash index aceb00c..d0b2112 100644 --- a/examples/errors/errors.hash +++ b/examples/errors/errors.hash @@ -1,2 +1,2 @@ -07cffb3d4e37162ab7e9e0a192561ddc8042b81a -BmDQXkPPTk +210ba0f8196006c0380acaec01655816848ef168 +mP_ZR1qjUvA diff --git a/examples/maps/maps.go b/examples/maps/maps.go index 425532e..2ed1363 100644 --- a/examples/maps/maps.go +++ b/examples/maps/maps.go @@ -16,7 +16,7 @@ func main() { m["k1"] = 7 m["k2"] = 13 - // Printing a map with e.g. `Println` will show all of + // Printing a map with e.g. `fmt.Println` will show all of // its key/value pairs. fmt.Println("map:", m) diff --git a/examples/maps/maps.hash b/examples/maps/maps.hash index c5f8c38..57c1a72 100644 --- a/examples/maps/maps.hash +++ b/examples/maps/maps.hash @@ -1,2 +1,2 @@ -2895d63b87f88ab374256c12dd1539cf7b070b77 -E6cGoiKqka +3e39d07e3f80ecbac558c6fb8baee2a5f914cf97 +U67R66Oab8r diff --git a/examples/slices/slices.go b/examples/slices/slices.go index 1918f98..521d1af 100644 --- a/examples/slices/slices.go +++ b/examples/slices/slices.go @@ -30,7 +30,7 @@ func main() { // arrays. One is the builtin `append`, which // returns a slice containing one or more new values. // Note that we need to accept a return value from - // append as we may get a new slice value. + // `append` as we may get a new slice value. s = append(s, "d") s = append(s, "e", "f") fmt.Println("apd:", s) diff --git a/examples/slices/slices.hash b/examples/slices/slices.hash index 68bb6a1..8b501cb 100644 --- a/examples/slices/slices.hash +++ b/examples/slices/slices.hash @@ -1,2 +1,2 @@ -d900c3b1cf2bd96591f7ad7ce7fd9e592ec31139 -dPQErsP6Yc +c6fa1627841f199dbf901f88580cb97eb92c5530 +Z3_U32sn8RF diff --git a/examples/variadic-functions/variadic-functions.go b/examples/variadic-functions/variadic-functions.go index 8277bea..5ee4ef2 100644 --- a/examples/variadic-functions/variadic-functions.go +++ b/examples/variadic-functions/variadic-functions.go @@ -8,7 +8,7 @@ package main import "fmt" // Here's a function that will take an arbitrary number -// of `ints` as arguments. +// of `int`s as arguments. func sum(nums ...int) { fmt.Print(nums, " ") total := 0 diff --git a/examples/variadic-functions/variadic-functions.hash b/examples/variadic-functions/variadic-functions.hash index 95ad82d..3c44a2b 100644 --- a/examples/variadic-functions/variadic-functions.hash +++ b/examples/variadic-functions/variadic-functions.hash @@ -1,2 +1,2 @@ -25bcf8d28adf0587d1959e88f32786d7f21872b2 -wRPLOM1VIH +34ba16069a5d972a837cc5c0172ab30873535220 +7f0JlVhToDD diff --git a/public/errors b/public/errors index ae50908..d402097 100644 --- a/public/errors +++ b/public/errors @@ -46,7 +46,7 @@ non-error tasks.
package main
A nil value in the error position indicates that +
A nil
value in the error position indicates that
there was no error.
If you want to programmatically use the data in -a custom error, you’ll need to get the error as an +a custom error, you’ll need to get the error as an instance of the custom error type via type assertion.
diff --git a/public/maps b/public/maps index 114b8d0..2829d28 100644 --- a/public/maps +++ b/public/maps @@ -40,7 +40,7 @@package main
Printing a map with e.g. Println
will show all of
+
Printing a map with e.g. fmt.Println
will show all of
its key/value pairs.
package main
append
, which
returns a slice containing one or more new values.
Note that we need to accept a return value from
-append as we may get a new slice value.
+append
as we may get a new slice value.
package main
Here’s a function that will take an arbitrary number
-of ints
as arguments.
int
s as arguments.