Skip to content

Commit 94803a5

Browse files
authored
Merge pull request #456 from SeppPenner/patch-2
Fixing doWhile.adoc example code is incorrect
2 parents e34fabe + 57aa10f commit 94803a5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Language/Structure/Control Structure/doWhile.adoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ The `condition` is a boolean expression that evaluates to `true` or `false`.
4646

4747
[source,arduino]
4848
----
49+
int x = 0;
4950
do
5051
{
5152
delay(50); // wait for sensors to stabilize
@@ -69,4 +70,4 @@ do
6970
[role="language"]
7071

7172
--
72-
// SEE ALSO SECTION ENDS
73+
// SEE ALSO SECTION ENDS

0 commit comments

Comments
 (0)