summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortiendo1011 <tiendo1011@gmail.com>2021-12-22 14:04:09 +0700
committertiendo1011 <tiendo1011@gmail.com>2021-12-22 14:04:09 +0700
commit7019d8df41c16d1c72097450c0243229229b230a (patch)
treed308fdd10d5c9578779a183d79e86aee7c0f4ae1
parent47ad358795caf269a47a054d249d017f5eb72ce4 (diff)
downloaddiff-lcs-fix-failed-test-due-to-resolving-off-by-one-error.tar.gz
Updating the comment to reflect the new found logicfix-failed-test-due-to-resolving-off-by-one-error
More info can be found here: https://github.com/halostatue/diff-lcs/issues/77
-rw-r--r--lib/diff/lcs.rb5
1 files 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 <tt>callbacks#discard_a</tt> or
# <tt>callbacks#discard_b</tt>, 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 <tt>callbacks#match</tt>, <tt>callbacks#discard_a</tt>, and
# <tt>callbacks#discard_b</tt> are invoked with an event comprising the