Skip to content
This repository was archived by the owner on Sep 6, 2019. It is now read-only.

Commit 3791776

Browse files
committed
Fixed use of '++' operator
1 parent 744f58d commit 3791776

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/time/business_calendars.jl

+3-3
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ function businessDaysBetween(c::BusinessCalendar, from::CalendarTime, to::Calend
9292
elseif (from > to)
9393
for d in to:days(1):from
9494
if (isBusinessDay(c, d))
95-
++wd;
95+
wd += 1
9696
end
9797
end
9898

@@ -102,11 +102,11 @@ function businessDaysBetween(c::BusinessCalendar, from::CalendarTime, to::Calend
102102
wd -= 1
103103
end
104104
if (isBusinessDay(c, to) && !includeLast)
105-
wd -1
105+
wd -= 1
106106
end
107107

108108
if (from > to)
109-
wd = -wd;
109+
wd = -wd
110110
end
111111
end
112112

0 commit comments

Comments
 (0)