Commit 64be5cca authored by Drew's avatar Drew

Update to Swift 3 Final

parent f6a17da3
......@@ -259,7 +259,6 @@ public struct Regex {
///Finds the first match in the given string.
public func findFirst(inString string: String) throws -> FindResult? {
var weDontMutateThis = self.regexImp.regext
var matches: [regmatch_t] = [regmatch_t](repeating: regmatch_t(), count: self.regexImp.regext.re_nsub + 1)
let result = regexec(&weDontMutateThis, string, matches.count, &matches, 0)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment