Skip to content

Commit

Permalink
Fix build error in Xcode 10.2
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamDenniss committed Apr 5, 2019
1 parent daa17a5 commit 48edabc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/OpenLocationCode.swift
Original file line number Diff line number Diff line change
Expand Up @@ -828,7 +828,7 @@ extension String {
let range = Range(uncheckedBounds: (lower: lower, upper: upper))
let start = index(startIndex, offsetBy: range.lowerBound)
let end = index(start, offsetBy: range.upperBound - range.lowerBound)
return String(self[Range(start ..< end)])
return String(self[start ..< end])
}

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

0 comments on commit 48edabc

Please sign in to comment.