summaryrefslogtreecommitdiffstats
path: root/lib/net
diff options
context:
space:
mode:
authoraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-07-26 13:27:18 +0000
committeraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-07-26 13:27:18 +0000
commit617947e72c87b8afd5b3a7a9be292518d5ea7875 (patch)
treec39827261c6011ed2a1df812c4159a71f72ffee8 /lib/net
parentf212e9e4f9b3fcd82856f4d7f93c17654af6ec3d (diff)
downloadruby-617947e72c87b8afd5b3a7a9be292518d5ea7875.tar.gz
ruby-617947e72c87b8afd5b3a7a9be292518d5ea7875.tar.xz
ruby-617947e72c87b8afd5b3a7a9be292518d5ea7875.zip
small document fix
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10615 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/net')
-rw-r--r--lib/net/http.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/net/http.rb b/lib/net/http.rb
index 968ea497b..46d95b27b 100644
--- a/lib/net/http.rb
+++ b/lib/net/http.rb
@@ -99,7 +99,7 @@ module Net #:nodoc:
# req = Net::HTTP::Post.new(url.path)
# req.basic_auth 'jack', 'pass'
# req.set_form_data({'from'=>'2005-01-01', 'to'=>'2005-03-31'}, ';')
- # res = Net::HTTP.new(url.host, url.port).start { http.request(req) }
+ # res = Net::HTTP.new(url.host, url.port).start {|http| http.request(req) }
# case res
# when Net::HTTPSuccess, Net::HTTPRedirection
# # OK