Skip to content

Commit d505a45

Browse files
committed
Address JaroWinkler deprecation message
1 parent 74d3054 commit d505a45

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

evaluation/calculator.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def report(message, &block)
3333
DidYouMean::JaroWinkler.module_eval do
3434
module_function
3535
def distance(str1, str2)
36-
::JaroWinkler.distance(str1, str2)
36+
::JaroWinkler.similarity(str1, str2)
3737
end if RUBY_ENGINE != 'jruby'
3838
end
3939
rescue LoadError, NameError => e

0 commit comments

Comments
 (0)