diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-03-25 02:08:39 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-03-25 02:08:39 +0000 |
commit | 38cffaab6176c07e7ee4d0aa620bc4345c08419f (patch) | |
tree | 46c39693494d75212e4d056dd9233593b4c9c6c6 /lib/uri | |
parent | 3d466b4f5764b800588c113f953d5de3b1a1803a (diff) | |
download | ruby-38cffaab6176c07e7ee4d0aa620bc4345c08419f.tar.gz |
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')
-rw-r--r-- | lib/uri/http.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/uri/http.rb b/lib/uri/http.rb index d43e9a28e0..81ae846fd9 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 |