X-Git-Url: https://git.yukkurigames.com/?p=string-lerp.git;a=blobdiff_plain;f=README.md;h=6d892629c526e92d131c559c8e465aafc4503c1d;hp=8ec96704802fee6fa7bbce4b84f105d4acf84646;hb=179909827edfc2bf465c8cd2f0ff955bfc7d8679;hpb=34182258ce91e32a350ce252a29cc73c06795089 diff --git a/README.md b/README.md index 8ec9670..6d89262 100644 --- a/README.md +++ b/README.md @@ -96,9 +96,19 @@ the strings are similar. ### stringLerp.diff(s, t) and stringLerp.patch(edits, s) These are the functions used to implement `diffLerp`. `diff` -calculates a series of edit operations - substitutions, insertions, +calculates an array of edit operations - substitutions, insertions, and deletions - to turn `s` into `t`. +The type of the edit operations is unspecified. What is guaranteed is: + +* There's an Array of them. +* The array can be cut up and applied in-order but piecemeal. +* They are simple objects, i.e. can be (de)serialized via JSON and fed + into the same version of `patch` later. + +Do not rely on edit operations to be exactly the same type (or same +operations) between versions / installations. + ### stringLerp.levenshteinMatrix(s, t, ins, del, sub)