Commits

Jasper Van der Jeugt  committed ec44468 Merge

Merge pull request #1 from nudded/patch-1

Ruby fold benchmark: Even better now.

  • Participants
  • Parent commits 39fcb10, 8cb4524

Comments (0)

Files changed (1)

File tests/benchmarks/ruby/fold.rb

 
   paragraph.drop(1).each do |word|
     if width + word.length + 1 <= max_width
-      str << ' ' + word
+      str << ' ' << word
       width += word.length + 1
     else
-      str << "\n" + word
+      str << "\n" << word
       width = word.length
     end
   end