summaryrefslogtreecommitdiffstats
path: root/lib/rexml/formatters
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-06-04 09:37:38 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-06-04 09:37:38 +0000
commitf12e1bb3fa605f99201e02b80752725839e12e1a (patch)
treedcaf4183b65972648531083adbd167bfd1274d38 /lib/rexml/formatters
parent2e4a24efb251c81855abd25beb6a3ab74ec02ab4 (diff)
downloadruby-f12e1bb3fa605f99201e02b80752725839e12e1a.tar.gz
ruby-f12e1bb3fa605f99201e02b80752725839e12e1a.tar.xz
ruby-f12e1bb3fa605f99201e02b80752725839e12e1a.zip
* lib/rdoc.rb: massive spelling correction patch from Evan Farrar
<evanfarrar at gmail.com> in [ruby-doc:1382] applied. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16810 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rexml/formatters')
-rw-r--r--lib/rexml/formatters/pretty.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rexml/formatters/pretty.rb b/lib/rexml/formatters/pretty.rb
index 3666eddc9..296e60768 100644
--- a/lib/rexml/formatters/pretty.rb
+++ b/lib/rexml/formatters/pretty.rb
@@ -126,7 +126,7 @@ module REXML
end
def wrap(string, width)
- # Recursivly wrap string at width.
+ # Recursively wrap string at width.
return string if string.length <= width
place = string.rindex(' ', width) # Position in string with last ' ' before cutoff
return string[0,place] + "\n" + wrap(string[place+1..-1], width)