Skip to content

Commit

Permalink
update for new Swift 4 string API
Browse files Browse the repository at this point in the history
  • Loading branch information
Evan Maloney committed Aug 21, 2017
1 parent ba3fff3 commit 2f2aecd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/SeverityLogFormatter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ public struct SeverityLogFormatter: LogFormatter
if severityTag.characters.count > trunc {
let startIndex = severityTag.characters.startIndex
let endIndex = severityTag.characters.index(startIndex, offsetBy: trunc)
severityTag = severityTag.substring(to: endIndex)
severityTag = String(severityTag[..<endIndex])
}
}

Expand Down

0 comments on commit 2f2aecd

Please sign in to comment.