summaryrefslogtreecommitdiff
path: root/lib/uri/http.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-03-25 02:08:39 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-03-25 02:08:39 +0000
commit1ac12c4056b9c24c5e5b0aacefa5dc75acf5e720 (patch)
tree46c39693494d75212e4d056dd9233593b4c9c6c6 /lib/uri/http.rb
parent88291c190a8781ed94e58799165df0c54b0004de (diff)
fix URI::HTTP.new example
* lib/uri/http.rb (URI::HTTP#initialize): [DOC] fix example, missing mandatory arguments. [ruby-core:74540] [Bug #12215] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54257 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/uri/http.rb')
-rw-r--r--lib/uri/http.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/uri/http.rb b/lib/uri/http.rb
index d43e9a28e09..81ae846fd96 100644
--- a/lib/uri/http.rb
+++ b/lib/uri/http.rb
@@ -63,6 +63,7 @@ module URI
return super(tmp)
end
+=begin
#
# == Description
#
@@ -75,8 +76,8 @@ module URI
#
# Example:
#
- # uri = URI::HTTP.new('http', nil, "www.example.com", nil, "/path",
- # "query", 'fragment')
+ # uri = URI::HTTP.new("http", nil, "www.example.com", nil, nil,
+ # "/path", nil, "query", "fragment")
#
#
# See also URI::Generic.new
@@ -84,6 +85,7 @@ module URI
def initialize(*arg)
super(*arg)
end
+=end
#
# == Description