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
But when I swapped textLeft and textRight, the result became like this
// swap textLeft and textRight before diff.New()
textLeft, textRight = textRight, textLeft
I think the second result is crorrect.
The first result is missing the original content of leftText
The text was updated successfully, but these errors were encountered:
TianZhH
changed the title
I get different results when I swap the position of the textLeft and textRight
When swapping the value of textLeft and textRight, I get different results
May 28, 2020
This is my code:
The result is like this
But when I swapped textLeft and textRight, the result became like this
I think the second result is crorrect.
The first result is missing the original content of leftText
The text was updated successfully, but these errors were encountered: