1
1
mirror of https://github.com/github/semantic.git synced 2025-01-02 12:23:08 +03:00

The Recursive case contains two Terms, not one.

This commit is contained in:
Rob Rix 2015-10-02 17:32:25 -04:00
parent b30aa91502
commit f9dcf9569c

View File

@ -6,8 +6,8 @@ public enum Algorithm<Recur, A> {
/// The type of `Diff`s which `Algorithm`s produce.
public typealias Diff = Free<A, Patch<A>>
/// Indicates that diffing should recur into the enclosed `Term`.
/// Indicates that diffing should compare the enclosed `Term`s.
///
/// When run, the enclosed function will be applied to the resulting `Diff`.
case Recursive(Term, Diff -> Recur)
case Recursive(Term, Term, Diff -> Recur)
}