Skip to content

Commit 4a88dcf

Browse files
committed
Add missing brace to return example code
fixes arduino/Arduino#6562
1 parent 105dee6 commit 4a88dcf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Language/Structure/Control Structure/return.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ A function to compare a sensor input to a threshold
5555
int checkSensor(){
5656
if (analogRead(0) > 400) {
5757
return 1;
58+
}
5859
else{
5960
return 0;
6061
}

0 commit comments

Comments
 (0)