Skip to content

Commit 32ba519

Browse files
committed
Solves a warning
1 parent de8d134 commit 32ba519

File tree

1 file changed

+1
-1
lines changed
  • Challenges2022.playground/Pages/Challenge#15.xcplaygroundpage

1 file changed

+1
-1
lines changed

Challenges2022.playground/Pages/Challenge#15.xcplaygroundpage/Contents.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ enum CustomError: Error {
2121

2222
func daysBetween(date1: String, date2: String) throws -> Int {
2323

24-
var formatter = DateFormatter()
24+
let formatter = DateFormatter()
2525
formatter.dateFormat = "dd/MM/yyyy"
2626

2727
let strongFormat = try! Regex("^(([0-9]){2}[/]){2}([0-9]){4}$")

0 commit comments

Comments
 (0)