Skip to content

Commit c62efee

Browse files
author
Stefania
authored
Merge pull request #200 from per1234/fix-return-example
Add missing brace to return example code
2 parents cdbe254 + 4a88dcf commit c62efee

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)