aboutsummaryrefslogtreecommitdiffstats
path: root/lib/net
diff options
context:
space:
mode:
authorkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-01-12 12:17:33 +0000
committerkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-01-12 12:17:33 +0000
commitb8004fa76604c2d427c44b5720a009bc5e7e7050 (patch)
tree3f3dacc62805b552bdf9a63e7615cf25061c391b /lib/net
parenta7881025724af58895a962c14ea9f127f5186ad7 (diff)
downloadruby-b8004fa76604c2d427c44b5720a009bc5e7e7050.tar.gz
lib/net/smtp.rb: Specify frozen_string_literal: true.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57314 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/net')
-rw-r--r--lib/net/smtp.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/net/smtp.rb b/lib/net/smtp.rb
index 1302f3aa1d..a485fff9b4 100644
--- a/lib/net/smtp.rb
+++ b/lib/net/smtp.rb
@@ -1,4 +1,4 @@
-# frozen_string_literal: false
+# frozen_string_literal: true
# = net/smtp.rb
#
# Copyright (c) 1999-2007 Yukihiro Matsumoto.
@@ -945,7 +945,7 @@ module Net
end
def recv_response
- buf = ''
+ buf = ''.dup
while true
line = @socket.readline
buf << line << "\n"