tracks/swift/exercises/leap/LeapExample.swift in trackler-2.0.3.4 vs tracks/swift/exercises/leap/LeapExample.swift in trackler-2.0.3.5
- old
+ new
@@ -2,10 +2,8 @@
var year = 1900
init(calendarYear: Int) {
year = calendarYear
}
var isLeapYear: Bool {
- get {
- return (year%4 == 0 && year%100 != 0 ) || year%400 == 0
- }
+ return (year % 4 == 0 && year % 100 != 0 ) || year % 400 == 0
}
}