summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAustin Ziegler <austin@surfeasy.com>2013-01-20 22:04:33 -0500
committerAustin Ziegler <austin@surfeasy.com>2013-01-20 22:04:33 -0500
commitf4e45639e43c27ecec95e95a115188cf42f7d703 (patch)
tree3d09db777536af1a2c0d004e46ccec3f699fd95a
parent3e188358d19efc4aabf3ca2999562c3cc9522e8f (diff)
downloaddiff-lcs-f4e45639e43c27ecec95e95a115188cf42f7d703.tar.gz
Fixing a typo.
-rw-r--r--lib/diff/lcs.rb2
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]