Even better now.
commit0e70655fdd83eae07e539ee69ef694b0a5ed321a
authorToon Willems <willemstoon@gmail.com>
dateThu 16 Jun 2011, 07:12 (15 years ago)
parent06a5572
tests/benchmarks/ruby/fold.rb+2−2
@@ -33,10 +33,10 @@ def fold_paragraph(paragraph, max_width)
3333
3434 paragraph.drop(1).each do |word|
3535 if width + word.length + 1 <= max_width
36− str << ' ' + word
36+ str << ' ' << word
3737 width += word.length + 1
3838 else
39− str << "\n" + word
39+ str << "\n" << word
4040 width = word.length
4141 end
4242 end