1
1
mirror of https://github.com/github/semantic.git synced 2024-12-26 00:12:29 +03:00

Comment on the coarse-grained diff.

This commit is contained in:
Rob Rix 2015-11-05 12:02:04 -05:00
parent 5a49baa039
commit 7abe08d60c

View File

@ -82,7 +82,7 @@ private let term: Cofree<String, Int> = Cofree(0, .Indexed([
private let diff: Free<String, Int, Patch<Cofree<String, Int>>> = Free.Roll(0, .Indexed([
Free.Roll(1, .Leaf("a string")),
Free.Pure(Patch.Replace(leafA, leafB)),
Free.Pure(Patch.Replace(leafA, leafB)), // coarse-grained diff of two leaf nodes
]))
// fine-grained diff of same
private let refined = Free.Roll(2, .Indexed([