Skip to content

Commit 21db36c

Browse files
committed
Fix bug in sizeof example code
Fixes regression of previously fixed arduino/Arduino#4635
1 parent c6eda80 commit 21db36c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Language/Variables/Utilities/sizeof.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ Note that `sizeof` returns the total number of bytes. So for larger variable typ
7979

8080
[source,arduino]
8181
----
82-
for (i = 0; i < (sizeof(myInts)/sizeof(int)) - 1; i++) {
82+
for (i = 0; i < (sizeof(myInts)/sizeof(int)); i++) {
8383
// do something with myInts[i]
8484
}
8585
----

0 commit comments

Comments
 (0)