diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-04 09:37:38 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-04 09:37:38 +0000 |
commit | e6c1752137349537c72f4438d34c990b26d0c71d (patch) | |
tree | dcaf4183b65972648531083adbd167bfd1274d38 /lib/rexml/formatters | |
parent | 106e48e5d86d20a4a288fd432d973ed69874b6d5 (diff) | |
download | ruby-e6c1752137349537c72f4438d34c990b26d0c71d.tar.gz |
* 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
Diffstat (limited to 'lib/rexml/formatters')
-rw-r--r-- | lib/rexml/formatters/pretty.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rexml/formatters/pretty.rb b/lib/rexml/formatters/pretty.rb index 3666eddc96..296e607687 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) |