[前][次][番号順一覧][スレッド一覧]

ruby-changes:47353

From: kazu <ko1@a...>
Date: Thu, 3 Aug 2017 00:10:48 +0900 (JST)
Subject: [ruby-changes:47353] kazu:r59471 (trunk): Fix net/pop code example syntax error

kazu	2017-08-03 00:10:40 +0900 (Thu, 03 Aug 2017)

  New Revision: 59471

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=59471

  Log:
    Fix net/pop code example syntax error
    
    ref https://github.com/rurema/doctree/pull/455
    [ci skip]

  Modified files:
    trunk/lib/net/pop.rb
Index: lib/net/pop.rb
===================================================================
--- lib/net/pop.rb	(revision 59470)
+++ lib/net/pop.rb	(revision 59471)
@@ -169,7 +169,7 @@ module Net https://github.com/ruby/ruby/blob/trunk/lib/net/pop.rb#L169
   #
   #     # 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 https://github.com/ruby/ruby/blob/trunk/lib/net/pop.rb#L771
     # === 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 https://github.com/ruby/ruby/blob/trunk/lib/net/pop.rb#L785
     # === 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 https://github.com/ruby/ruby/blob/trunk/lib/net/pop.rb#L844
     # === 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|

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]