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:
parent
5a49baa039
commit
7abe08d60c
@ -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([
|
||||
|
Loading…
Reference in New Issue
Block a user