From 7019d8df41c16d1c72097450c0243229229b230a Mon Sep 17 00:00:00 2001 From: tiendo1011 Date: Wed, 22 Dec 2021 14:04:09 +0700 Subject: Updating the comment to reflect the new found logic More info can be found here: https://github.com/halostatue/diff-lcs/issues/77 --- lib/diff/lcs.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/diff/lcs.rb b/lib/diff/lcs.rb index 8425d15..38dff6e 100644 --- a/lib/diff/lcs.rb +++ b/lib/diff/lcs.rb @@ -250,8 +250,9 @@ class << Diff::LCS # advance that arrow and will call callbacks#discard_a or # callbacks#discard_b, depending on which arrow it advanced. If both # arrows point to elements that are not part of the longest common - # subsequence, then #traverse_sequences will advance one of them and call the - # appropriate callback, but it is not specified which it will call. + # subsequence, then #traverse_sequences will advance arrow +a+ and call the + # appropriate callback, then it will advance arrow +b+ and call the appropriate + # callback. # # The methods for callbacks#match, callbacks#discard_a, and # callbacks#discard_b are invoked with an event comprising the -- cgit v1.2.1