Skip to content

Commit a0985d8

Browse files
committed
Elaborate on moves not necessarily representing all moves.
1 parent 42ed918 commit a0985d8

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

FlexibleDiff/Changeset.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,11 @@ public struct Changeset {
9898
/// start index and the offset.
9999
public var mutations = IndexSet()
100100

101-
/// The offset pairs of moves with a mutation flag as the associated value.
101+
/// The offset pairs of moves.
102+
///
103+
/// These represent only the required moves for reproducing the current version from the
104+
/// previous version — moves being implied by preceding removals and insertions could
105+
/// have been eliminated as an optimization.
102106
///
103107
/// The source offset is semantically equivalent to a removal offset, while the
104108
/// destination offset is semantically equivalent to an insertion offset.

0 commit comments

Comments
 (0)