aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rubygems/text.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rubygems/text.rb')
-rw-r--r--lib/rubygems/text.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rubygems/text.rb b/lib/rubygems/text.rb
index 5d346b496b..f6817c06a2 100644
--- a/lib/rubygems/text.rb
+++ b/lib/rubygems/text.rb
@@ -65,12 +65,12 @@ module Gem::Text
x = nil
str1.each_char.each_with_index do |char1,i|
- e = i+1
+ e = i + 1
str2.each_char.each_with_index do |char2,j|
cost = (char1 == char2) ? 0 : 1
x = min3(
- d[j+1] + 1, # insertion
+ d[j + 1] + 1, # insertion
e + 1, # deletion
d[j] + cost # substitution
)