1
1
mirror of https://github.com/github/semantic.git synced 2024-12-27 00:44:57 +03:00

Missed a couple of cases in SES.

This commit is contained in:
Rob Rix 2015-10-15 11:20:41 -04:00
parent eda4ece5a8
commit d74e4fb231

View File

@ -58,12 +58,12 @@ public func SES<Term, A>(a: [Term], _ b: [Term], recur: (Term, Term) -> Free<A,
// right extent of the edit graph; can only move down
if let down = down {
return cons(Diff.Pure(Patch.Insert(b[j])), rest: down)
return cons(Diff.Insert(b[j]), rest: down)
}
// bottom extent of the edit graph; can only move right
if let right = right {
return cons(Diff.Pure(Patch.Delete(a[i])), rest: right)
return cons(Diff.Delete(a[i]), rest: right)
}
// bottom-right corner of the edit graph