diff options
author | Austin Ziegler <austin@surfeasy.com> | 2013-01-20 22:04:33 -0500 |
---|---|---|
committer | Austin Ziegler <austin@surfeasy.com> | 2013-01-20 22:04:33 -0500 |
commit | f4e45639e43c27ecec95e95a115188cf42f7d703 (patch) | |
tree | 3d09db777536af1a2c0d004e46ccec3f699fd95a | |
parent | 3e188358d19efc4aabf3ca2999562c3cc9522e8f (diff) | |
download | diff-lcs-f4e45639e43c27ecec95e95a115188cf42f7d703.tar.gz |
Fixing a typo.
-rw-r--r-- | lib/diff/lcs.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/diff/lcs.rb b/lib/diff/lcs.rb index 5cb58ed..7543fe6 100644 --- a/lib/diff/lcs.rb +++ b/lib/diff/lcs.rb @@ -221,7 +221,7 @@ class << Diff::LCS def lcs(seq1, seq2, &block) #:yields seq1[i] for each matched: matches = Diff::LCS::Internals.lcs(seq1, seq2) ret = [] - string = seq.kind_of? String + string = seq1.kind_of? String matches.each_with_index do |e, i| unless matches[i].nil? v = string ? seq1[i, 1] : seq1[i] |