Skip to content

Commit

Permalink
modified: Text/group_alike_words.pl
Browse files Browse the repository at this point in the history
  • Loading branch information
trizen committed Feb 9, 2017
1 parent 25f9f00 commit 45d8ee9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Text/group_alike_words.pl
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ sub leven {
next if $diff > $opt{d};

# Compute the Levenshtein distance
if (lev($words[$i], $words[$j]) <= $opt{d}) {
if (leven($words[$i], $words[$j]) <= $opt{d}) {
if (not exists $table{$i}) {
$table{$i} = [join('', @{$words[$i]})];
}
Expand Down

0 comments on commit 45d8ee9

Please sign in to comment.