summaryrefslogtreecommitdiff
path: root/lib/rexml/formatters/pretty.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rexml/formatters/pretty.rb')
-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 22b6d857cd..d21175d34a 100644
--- a/lib/rexml/formatters/pretty.rb
+++ b/lib/rexml/formatters/pretty.rb
@@ -125,7 +125,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)