Skip to content

Commit 86383e1

Browse files
authored
Make array size match array literal size (#851)
1 parent d91cefb commit 86383e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Language/Variables/Data Types/array.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ All of the methods below are valid ways to create (declare) an array.
2121
----
2222
int myInts[6];
2323
int myPins[] = {2, 4, 8, 3, 6};
24-
int mySensVals[6] = {2, 4, -8, 3, 2};
24+
int mySensVals[5] = {2, 4, -8, 3, 2};
2525
char message[6] = "hello";
2626
----
2727
You can declare an array without initializing it as in myInts.

0 commit comments

Comments
 (0)