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

ruby-changes:13083

From: marcandre <ko1@a...>
Date: Fri, 11 Sep 2009 01:29:10 +0900 (JST)
Subject: [ruby-changes:13083] Ruby:r24830 (trunk): * lib/net/http.rb (fetch): rdoc fix, patch by Arthur Schreiber, .

marcandre	2009-09-11 01:28:52 +0900 (Fri, 11 Sep 2009)

  New Revision: 24830

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

  Log:
    * lib/net/http.rb (fetch): rdoc fix, patch by Arthur Schreiber, [ruby-core:18309].

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

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 24829)
+++ ChangeLog	(revision 24830)
@@ -1,3 +1,8 @@
+Fri Sep 11 01:14:00 2009  Marc-Andre Lafortune  <ruby-core@m...>
+
+	* lib/net/http.rb (fetch): rdoc fix, patch by Arthur Schreiber.
+	  [ruby-core:18309].
+
 Thu Sep 10 23:00:45 2009  Nobuyoshi Nakada  <nobu@r...>
 
 	* lib/mkmf.rb (create_makefile): fix for parallel execution.
Index: lib/net/http.rb
===================================================================
--- lib/net/http.rb	(revision 24829)
+++ lib/net/http.rb	(revision 24830)
@@ -1292,8 +1292,9 @@
     end
 
     # Returns the header field corresponding to the case-insensitive key.
-    # Returns the default value +args+, or the result of the block, or nil,
-    # if there's no header field named key.  See Hash#fetch
+    # Returns the default value +args+, or the result of the block, or
+    # raises an IndexErrror if there's no header field named +key+
+    # See Hash#fetch
     def fetch(key, *args, &block)   #:yield: +key+
       a = @header.fetch(key.downcase, *args, &block)
       a.join(', ')

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

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