Skip to content

Commit

Permalink
tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
mmcgrana committed Oct 11, 2012
1 parent 6a0ef11 commit 38378a9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions examples/arrays/arrays.go
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down
2 changes: 1 addition & 1 deletion examples/arrays/arrays.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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.
2 changes: 1 addition & 1 deletion examples/slices/slices.go
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit 38378a9

Please sign in to comment.