summaryrefslogtreecommitdiffhomepage
path: root/go.html.markdown
diff options
context:
space:
mode:
authorLevi Bostian <levi.bostian@gmail.com>2014-09-05 21:01:38 -0500
committerLevi Bostian <levi.bostian@gmail.com>2014-09-05 21:01:38 -0500
commit1fb48860202f8d1404a2544a147b06dc01665ac2 (patch)
tree154017fb73212fcd833d0b930c4ef509334aa635 /go.html.markdown
parent5f85da5d63ae56f8ecda1726b3221a41838ac719 (diff)
parentc0d49cdb88a41ecea12cc98ca8ee04956b9c0d7b (diff)
Merge pull request #703 from jcbohin/go-en-confusing_array_initialization-#257
[go/en] Array initialization disambiguation - fixes #257
Diffstat (limited to 'go.html.markdown')
-rw-r--r--go.html.markdown3
1 files changed, 2 insertions, 1 deletions
diff --git a/go.html.markdown b/go.html.markdown
index bedc3042..758c9ff4 100644
--- a/go.html.markdown
+++ b/go.html.markdown
@@ -92,7 +92,8 @@ can include line breaks.` // Same string type.
// Arrays have size fixed at compile time.
var a4 [4]int // An array of 4 ints, initialized to all 0.
- a3 := [...]int{3, 1, 5} // An array of 3 ints, initialized as shown.
+ a3 := [...]int{3, 1, 5} // An array initialzed with a fixed size of three
+ // elements, with values 3, 1, and 5.
// Slices have dynamic size. Arrays and slices each have advantages
// but use cases for slices are much more common.