You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// DiffMain finds the differences between two texts.
// If an invalid UTF-8 sequence is encountered, it will be replaced by the Unicode replacement character.
func (dmp *DiffMatchPatch) DiffMain(text1, text2 string, checklines bool) []Diff {
Is DiffDelete mean that text1 do not have this content and text2 has this content? or text2 do not have this content and text1 has this content?
The user can do the experiment to find out that text1 is the old version ,and the text2 is the newer version, so DiffDelete mean that text2 do not have this content and text1 has this content.
But that information is not in the document.
The text was updated successfully, but these errors were encountered:
From the document of DiffMatchPatch.DiffMain:
https://github.com/sergi/go-diff/blob/master/diffmatchpatch/diff.go#L49
From the document of DiffDelete:
https://github.com/sergi/go-diff/blob/master/diffmatchpatch/diff.go#L30
So what is the mean of DiffDelete ?
Is DiffDelete mean that text1 do not have this content and text2 has this content? or text2 do not have this content and text1 has this content?
The user can do the experiment to find out that text1 is the old version ,and the text2 is the newer version, so DiffDelete mean that text2 do not have this content and text1 has this content.
But that information is not in the document.
The text was updated successfully, but these errors were encountered: