[前][次][番号順一覧][スレッド一覧]

ruby-changes:22732

From: ayumin <ko1@a...>
Date: Fri, 24 Feb 2012 12:10:40 +0900 (JST)
Subject: [ruby-changes:22732] ayumin:r34781 (trunk): * lib/net/http.rb: Fix documentation.

ayumin	2012-02-24 12:10:25 +0900 (Fri, 24 Feb 2012)

  New Revision: 34781

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=34781

  Log:
    * lib/net/http.rb: Fix documentation.

  Modified files:
    trunk/ChangeLog
    trunk/lib/net/http.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 34780)
+++ ChangeLog	(revision 34781)
@@ -1,3 +1,8 @@
+Fri Feb 24 12:07:34 2012  Ayumu AIZAWA  <ayumu.aizawa@g...>
+
+	* lib/net/http.rb: Fix documentation. Patched from Florian Mhun
+	  via http://github.com/ruby/ruby/pull/96
+
 Fri Feb 24 11:48:07 2012  Ayumu AIZAWA  <ayumu.aizawa@g...>
 
 	* string.c (rb_str_prepend): Fix documentation for String#prepend.
Index: lib/net/http.rb
===================================================================
--- lib/net/http.rb	(revision 34780)
+++ lib/net/http.rb	(revision 34781)
@@ -256,7 +256,7 @@
   #   uri = URI('https://secure.example.com/some_path?query=string')
   #
   #   Net::HTTP.start(uri.host, uri.port,
-  #     :use_ssl => uri.scheme == 'https').start do |http|
+  #     :use_ssl => uri.scheme == 'https') do |http|
   #     request = Net::HTTP::Get.new uri.request_uri
   #
   #     response = http.request request # Net::HTTPResponse object

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]