diff options
author | Kasper Timm Hansen <kaspth@gmail.com> | 2016-09-12 21:46:44 +0200 |
---|---|---|
committer | Kasper Timm Hansen <kaspth@gmail.com> | 2016-09-12 21:46:44 +0200 |
commit | 2b5ed618ed61ca14912f37f0fde747575a13f902 (patch) | |
tree | c666cdd561665652aeb550673e5e28292e664b78 /guides/rails_guides | |
parent | dc75104948bad953947716c018fc71ba28e0e236 (diff) | |
download | rails-2b5ed618ed61ca14912f37f0fde747575a13f902.tar.gz rails-2b5ed618ed61ca14912f37f0fde747575a13f902.tar.bz2 rails-2b5ed618ed61ca14912f37f0fde747575a13f902.zip |
[ci skip] Update Levenshtein code with better attribution.
Lacks some proper creds to the homies who went the... distance ;)
Diffstat (limited to 'guides/rails_guides')
-rw-r--r-- | guides/rails_guides/levenshtein.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/guides/rails_guides/levenshtein.rb b/guides/rails_guides/levenshtein.rb index a3e7620444..e947150364 100644 --- a/guides/rails_guides/levenshtein.rb +++ b/guides/rails_guides/levenshtein.rb @@ -1,6 +1,8 @@ module RailsGuides module Levenshtein - # This code is based directly on the Text gem implementation + # This code is based directly on the Text gem implementation. + # Copyright (c) 2006-2013 Paul Battley, Michael Neumann, Tim Fletcher. + # # Returns a value representing the "cost" of transforming str1 into str2 def self.distance(str1, str2) s = str1 |