Skip to content

Commit ca8962f

Browse files
authored
swapped false w/ true
in function setHours line 8 and 12's bools were swapped
1 parent 9d33cc3 commit ca8962f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Time.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
bool Time::setHours(int val) {
66
if (val < 0) {
77
hours = 0;
8-
return true;
8+
return false;
99
}
1010

1111
hours = val;
12-
return false;
12+
return true;
1313
}
1414

1515
bool Time::setMinutes(int val) {

0 commit comments

Comments
 (0)