diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | lib/net/ftp.rb | 4 |
2 files changed, 6 insertions, 2 deletions
@@ -1,3 +1,7 @@ +Sun Apr 1 00:41:56 2012 Shugo Maeda <shugo@ruby-lang.org> + + * lib/net/ftp.rb: fixed the domain name in examples. + Sat Mar 31 21:39:45 2012 NARUSE, Yui <naruse@ruby-lang.org> * lib/webrick/utils.rb (WEBrick::Utils::TimeoutHandler): dup to prevent diff --git a/lib/net/ftp.rb b/lib/net/ftp.rb index 4ea36cac32..ee4b75a146 100644 --- a/lib/net/ftp.rb +++ b/lib/net/ftp.rb @@ -41,7 +41,7 @@ module Net # # === Example 1 # - # ftp = Net::FTP.new('ftp.netlab.co.jp') + # ftp = Net::FTP.new('example.com') # ftp.login # files = ftp.chdir('pub/lang/ruby/contrib') # files = ftp.list('n*') @@ -50,7 +50,7 @@ module Net # # === Example 2 # - # Net::FTP.open('ftp.netlab.co.jp') do |ftp| + # Net::FTP.open('example.com') do |ftp| # ftp.login # files = ftp.chdir('pub/lang/ruby/contrib') # files = ftp.list('n*') |