diff --git a/prototype/doubt-difftool/main.swift b/prototype/doubt-difftool/main.swift index e58c771e1..78e0552ac 100644 --- a/prototype/doubt-difftool/main.swift +++ b/prototype/doubt-difftool/main.swift @@ -151,7 +151,7 @@ extension ForwardIndexType { } } -func refineLeafReplacement(patch: Patch, aString: String, bString: String) -> Diff { +func refineLeafReplacement(aString: String, _ bString: String)(_ patch: Patch) -> Diff { switch patch { case let .Replace(.Unroll(aExtract, .Leaf), .Unroll(bExtract, .Leaf)): let a = aString.utf16[aExtract.range].enumerate().map { Term(Info(range: (aExtract.range.startIndex + 0).range, categories: aExtract.categories), .Leaf(String($1))) }