From 729ae5df0f4548eab14cbdf99d7acefd7ea0612d Mon Sep 17 00:00:00 2001 From: pasali Date: Sun, 18 Jan 2015 16:33:32 +0200 Subject: [PATCH] fix array definition --- en/02.2.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/en/02.2.md b/en/02.2.md index d8aa4377..9d6900f7 100644 --- a/en/02.2.md +++ b/en/02.2.md @@ -295,7 +295,7 @@ Then we define a `slice`, and initialize its data. `slice` can redefine existing slices or arrays. `slice` uses `array[i:j]` to slice, where `i` is the start index and `j` is end index, but notice that `array[j]` will not be sliced since the length of the slice is `j-i`. - // define a slice with 10 elements whose types are bytes + // define an array with 10 elements whose types are bytes var ar = [10]byte {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j'} // define two slices with type []byte