summaryrefslogtreecommitdiff
path: root/lib/net/smtp.rb
diff options
context:
space:
mode:
authorkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-05-19 14:50:47 +0000
committerkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-05-19 14:50:47 +0000
commitc54733e1206c2d7434610c8f7f2875f082231cfd (patch)
tree35c9630ade390f3a9562e2447dc01f024cd37b2c /lib/net/smtp.rb
parent66795c47745698b30d42b35831f359aa3c07bf2c (diff)
fix typos inspired by r40825
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40829 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/net/smtp.rb')
-rw-r--r--lib/net/smtp.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/net/smtp.rb b/lib/net/smtp.rb
index 01f8b2b1f0..4ed7e746d9 100644
--- a/lib/net/smtp.rb
+++ b/lib/net/smtp.rb
@@ -215,7 +215,7 @@ module Net
@started = false
@open_timeout = 30
@read_timeout = 60
- @error_occured = false
+ @error_occurred = false
@debug_output = nil
@tls = false
@starttls = false
@@ -605,17 +605,17 @@ module Net
rescue SMTPError
if @esmtp
@esmtp = false
- @error_occured = false
+ @error_occurred = false
retry
end
raise
end
def do_finish
- quit if @socket and not @socket.closed? and not @error_occured
+ quit if @socket and not @socket.closed? and not @error_occurred
ensure
@started = false
- @error_occured = false
+ @error_occurred = false
@socket.close if @socket and not @socket.closed?
@socket = nil
end
@@ -942,11 +942,11 @@ module Net
end
def critical
- return '200 dummy reply code' if @error_occured
+ return '200 dummy reply code' if @error_occurred
begin
return yield()
rescue Exception
- @error_occured = true
+ @error_occurred = true
raise
end
end