Skip to content

Commit

Permalink
Fix net/pop code example syntax error
Browse files Browse the repository at this point in the history
ref rurema/doctree#455
[ci skip]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59471 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
znz committed Aug 2, 2017
1 parent 015337d commit ec22514
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/net/pop.rb
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ class POPBadResponse < POPError; end
#
# # Use APOP authentication if $isapop == true
# pop = Net::POP3.APOP($is_apop).new('apop.example.com', 110)
# pop.start(YourAccount', 'YourPassword') do |pop|
# pop.start('YourAccount', 'YourPassword') do |pop|
# # Rest of the code is the same.
# end
#
Expand Down Expand Up @@ -771,7 +771,7 @@ def inspect
# === Example without block
#
# POP3.start('pop.example.com', 110,
# 'YourAccount, 'YourPassword') do |pop|
# 'YourAccount', 'YourPassword') do |pop|
# n = 1
# pop.mails.each do |popmail|
# File.open("inbox/#{n}", 'w') do |f|
Expand All @@ -785,7 +785,7 @@ def inspect
# === Example with block
#
# POP3.start('pop.example.com', 110,
# 'YourAccount, 'YourPassword') do |pop|
# 'YourAccount', 'YourPassword') do |pop|
# n = 1
# pop.mails.each do |popmail|
# File.open("inbox/#{n}", 'w') do |f|
Expand Down Expand Up @@ -844,7 +844,7 @@ def header(dest = '')
# === Example
#
# POP3.start('pop.example.com', 110,
# 'YourAccount, 'YourPassword') do |pop|
# 'YourAccount', 'YourPassword') do |pop|
# n = 1
# pop.mails.each do |popmail|
# File.open("inbox/#{n}", 'w') do |f|
Expand Down

0 comments on commit ec22514

Please sign in to comment.