Skip to content

Commit 48edabc

Browse files
Fix build error in Xcode 10.2
1 parent daa17a5 commit 48edabc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/OpenLocationCode.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -828,7 +828,7 @@ extension String {
828828
let range = Range(uncheckedBounds: (lower: lower, upper: upper))
829829
let start = index(startIndex, offsetBy: range.lowerBound)
830830
let end = index(start, offsetBy: range.upperBound - range.lowerBound)
831-
return String(self[Range(start ..< end)])
831+
return String(self[start ..< end])
832832
}
833833

834834
/// Returns index of the first instance of the string, or -1 if not found.

0 commit comments

Comments
 (0)