1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/rdoc.rb: massive spelling correction patch from Evan Farrar

<evanfarrar at gmail.com> in [ruby-doc:1382] applied.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16810 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2008-06-04 09:37:38 +00:00
parent 106e48e5d8
commit e6c1752137
58 changed files with 96 additions and 91 deletions

View file

@ -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)