From ebdc59b8b5ef878a4f114ad74e6304cd0bb50dcd Mon Sep 17 00:00:00 2001 From: Bobbi Webber-Manners Date: Sat, 5 May 2018 01:07:01 -0400 Subject: [PATCH] Minor fixes to array initializer section --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1e30aef..73a6582 100644 --- a/README.md +++ b/README.md @@ -281,8 +281,8 @@ Variables of type word are also used to store pointers (there is no pointer type Arrays of byte and word may be declared as follows. The mandatory initializer is used to initialize the elements: - word myArray[100] = {1, 2, 3} - byte storage[4] = {100, 200, 300, 200+200} + word myArray[100] = {1, 2, 3}; ' 1, 2, 3, 0, 0, 0 ... + byte storage[4] = {100, 200, 300, 200+200}; ' 100, 200, 300, 400, 0, 0, 0 ... Initializer lists must be no longer than the number of elements in the array. The following is an error: