Skip to content

Commit

Permalink
Fix warning for deprecated method.
Browse files Browse the repository at this point in the history
  • Loading branch information
SlaunchaMan committed Dec 7, 2020
1 parent 5551b2f commit 7e86a86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/PackageConfig/DynamicLibraries.swift
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ enum DynamicLibraries {
.map(String.init)
.map {
guard let comment = $0.range(of: "//")?.lowerBound else { return $0 }
return String($0.prefix(comment.encodedOffset))
return String($0[..<comment])
}
.joined()
.replacingOccurrences(of: "\t", with: "")
Expand Down

0 comments on commit 7e86a86

Please sign in to comment.