ruby-changes:42183
From: nobu <ko1@a...>
Date: Fri, 25 Mar 2016 11:08:45 +0900 (JST)
Subject: [ruby-changes:42183] nobu:r54257 (trunk): fix URI::HTTP.new example
nobu 2016-03-25 11:08:39 +0900 (Fri, 25 Mar 2016) New Revision: 54257 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=54257 Log: fix URI::HTTP.new example * lib/uri/http.rb (URI::HTTP#initialize): [DOC] fix example, missing mandatory arguments. [ruby-core:74540] [Bug #12215] Modified files: trunk/ChangeLog trunk/lib/uri/http.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 54256) +++ ChangeLog (revision 54257) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Fri Mar 25 11:08:37 2016 Nobuyoshi Nakada <nobu@r...> + + * 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@r...> * thread_pthread.c (reserve_stack): fix reserving position where Index: lib/uri/http.rb =================================================================== --- lib/uri/http.rb (revision 54256) +++ lib/uri/http.rb (revision 54257) @@ -63,6 +63,7 @@ module URI https://github.com/ruby/ruby/blob/trunk/lib/uri/http.rb#L63 return super(tmp) end +=begin # # == Description # @@ -75,8 +76,8 @@ module URI https://github.com/ruby/ruby/blob/trunk/lib/uri/http.rb#L76 # # 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 https://github.com/ruby/ruby/blob/trunk/lib/uri/http.rb#L85 def initialize(*arg) super(*arg) end +=end # # == Description -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/