diff options
| author | Sam Zaydel <szaydel@gmail.com> | 2014-08-19 20:43:18 -0700 | 
|---|---|---|
| committer | Sam Zaydel <szaydel@gmail.com> | 2014-08-19 20:43:42 -0700 | 
| commit | 161e19baa96e3c9dbc5e8682cf3ef08bc6723a2e (patch) | |
| tree | fc641bec9160e0f24f7615dac883fb6e228d8ca3 /go.html.markdown | |
| parent | 7000db24e040d712f963efa4dda70a9b3b99e3f8 (diff) | |
Minor language change fixing mixed use of array and slice, where only slice is correct.
Diffstat (limited to 'go.html.markdown')
| -rw-r--r-- | go.html.markdown | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/go.html.markdown b/go.html.markdown index ddedd25e..c85209e0 100644 --- a/go.html.markdown +++ b/go.html.markdown @@ -110,9 +110,9 @@ can include line breaks.` // Same string type.  	fmt.Println(s) // Updated slice is now [1 2 3 4 5 6]  	// To append another slice, instead of list of atomic elements we can  	// pass a reference to a slice or a slice literal like this, with a -	// trailing elipsis, meaning take an array and unpack its elements, -	// appending them to the slice. -	s = append(s, []int{7, 8, 9}...) // Second argument is an array literal. +	// trailing elipsis, meaning take a slice and unpack its elements, +	// appending them to slice s. +	s = append(s, []int{7, 8, 9}...) // Second argument is a slice literal.  	fmt.Println(s)	// Updated slice is now [1 2 3 4 5 6 7 8 9]  	p, q := learnMemory() // Declares p, q to be type pointer to int. | 
