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 | |
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
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | lib/uri/http.rb | 6 |
2 files changed, 9 insertions, 2 deletions
@@ -1,3 +1,8 @@ +Fri Mar 25 11:08:37 2016 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * lib/uri/http.rb (URI::HTTP#initialize): [DOC] fix example, + missing mandatory arguments. [ruby-core:74540] [Bug #12215] + Fri Mar 25 01:50:58 2016 NARUSE, Yui <naruse@ruby-lang.org> * thread_pthread.c (reserve_stack): fix reserving position where 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 |