Skip to content

Commit

Permalink
Fixed compilation issue on Linux.
Browse files Browse the repository at this point in the history
  • Loading branch information
miroslavkovac committed Oct 16, 2017
1 parent bbd16b3 commit a4e8ffa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Lingo/StringInterpolator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class StringInterpolator {
let startIndex = rawString.index(rawString.startIndex, offsetBy: range.location)
let endIndex = rawString.index(startIndex, offsetBy: range.length)
#if swift(>=4)
let matchedString = rawString[startIndex..<endIndex]
let matchedString = String(rawString[startIndex..<endIndex])
#else
let matchedString = rawString.substring(with: Range(uncheckedBounds: (lower: startIndex, upper: endIndex)))
#endif
Expand Down

0 comments on commit a4e8ffa

Please sign in to comment.