From 6a0ef1145c769532830c5ad49d41301ccb68cb27 Mon Sep 17 00:00:00 2001 From: Mark McGranaghan Date: Wed, 10 Oct 2012 21:57:27 -0700 Subject: [PATCH] tweak --- examples/arrays/arrays.go | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/examples/arrays/arrays.go b/examples/arrays/arrays.go index 5150ff4..50da2dd 100644 --- a/examples/arrays/arrays.go +++ b/examples/arrays/arrays.go @@ -7,13 +7,11 @@ import "fmt" func main() { - // The type of elements and length are both part of - // the array's type. Here we create an array `x` that - // will hold exactly 5 ints. + // Here we create an array `x` that will hold exactly + // 5 `int`s. The type of elements and length are both + // part of the array's type. By default an array is + // zero-valued, which for `int`s means `0`s. var a [5]int - - // By default an array is zero-valued, which for ints - // means an array of `0`s. fmt.Println("emp:", a) // We can set a value at a given index using the