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 /ChangeLog | |
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 'ChangeLog')
-rw-r--r-- | ChangeLog | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -1,3 +1,9 @@ +Wed Jul 25 09:26:32 2012 NARUSE, Yui <naruse@ruby-lang.org> + + * 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. + Wed Jul 25 09:16:26 2012 NARUSE, Yui <naruse@ruby-lang.org> * lib/cgi/html.rb (element_init): suppress redefine warning. |