Skip to content

Commit 63e0ac4

Browse files
author
Stefania
authored
Merge pull request #210 from per1234/sizeof-bug
Fix bug in sizeof example code
2 parents c6eda80 + 21db36c commit 63e0ac4

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)