diff --git a/examples/arrays/arrays.go b/examples/arrays/arrays.go index 50da2dd..5125a22 100644 --- a/examples/arrays/arrays.go +++ b/examples/arrays/arrays.go @@ -14,9 +14,9 @@ func main() { var a [5]int fmt.Println("emp:", a) - // We can set a value at a given index using the - // `array[index] = value` syntax, and get a value - // with `array[index]`. + // We can set a value at an index using the + // `array[index] = value` syntax, and get a value with + // `array[index]`. a[4] = 100 fmt.Println("set:", a) fmt.Println("get:", a[4]) diff --git a/examples/arrays/arrays.sh b/examples/arrays/arrays.sh index b6401f5..61e3019 100644 --- a/examples/arrays/arrays.sh +++ b/examples/arrays/arrays.sh @@ -9,4 +9,4 @@ dcl: [1 2 3 4 5] 2d: [[0 1 2] [1 2 3]] # You'll see _slices_ much more often than arrays in -# typical Go code. We'll look at slices next. +# typical Go. We'll look at slices next. diff --git a/examples/slices/slices.go b/examples/slices/slices.go index 41107de..d34022f 100644 --- a/examples/slices/slices.go +++ b/examples/slices/slices.go @@ -1,5 +1,5 @@ // _Slices_ are a key data type in Go, giving a more -// powerful interface to sequences that arrays. +// powerful interface to sequences than arrays. package main