diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-07-25 00:29:30 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-07-25 00:29:30 +0000 |
commit | ba22341854a344727fe002c635594e1a8d40e217 (patch) | |
tree | cfab9890dad6b9b8aaa815d69ee079960e44182a /test/cgi/test_cgi_header.rb | |
parent | 347c554f7ee503f06b59dbe1bd3a6ae818a33efb (diff) | |
download | ruby-ba22341854a344727fe002c635594e1a8d40e217.tar.gz |
* lib/cgi/html.rb: Use << instead of +=.
`a += b` is syntax sugar of `a = a + b`; it creates a new string
object. `a << b` is concatenation and doesn't create new object.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36530 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/cgi/test_cgi_header.rb')
0 files changed, 0 insertions, 0 deletions