mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Fix net/pop code example syntax error
ref https://github.com/rurema/doctree/pull/455 [ci skip] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59471 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
58cef45088
commit
b93aea84d0
1 changed files with 4 additions and 4 deletions
|
@ -169,7 +169,7 @@ module Net
|
|||
#
|
||||
# # 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
|
||||
#
|
||||
|
@ -771,7 +771,7 @@ module Net
|
|||
# === 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|
|
||||
|
@ -785,7 +785,7 @@ module Net
|
|||
# === 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|
|
||||
|
@ -844,7 +844,7 @@ module Net
|
|||
# === 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|
|
||||
|
|
Loading…
Add table
Reference in a new issue