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

ruby-changes:45298

From: nobu <ko1@a...>
Date: Thu, 19 Jan 2017 15:39:48 +0900 (JST)
Subject: [ruby-changes:45298] nobu:r57371 (trunk): ENV#fetch: fix documentation of raised exception

nobu	2017-01-19 15:39:44 +0900 (Thu, 19 Jan 2017)

  New Revision: 57371

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=57371

  Log:
    ENV#fetch: fix documentation of raised exception
    
    [Fix GH-1514]
    Author:    Misty De Meo <mistydemeo@g...>

  Modified files:
    trunk/hash.c
Index: hash.c
===================================================================
--- hash.c	(revision 57370)
+++ hash.c	(revision 57371)
@@ -3263,7 +3263,7 @@ rb_f_getenv(VALUE obj, VALUE name) https://github.com/ruby/ruby/blob/trunk/hash.c#L3263
  * Retrieves the environment variable +name+.
  *
  * If the given name does not exist and neither +default+ nor a block a
- * provided an IndexError is raised.  If a block is given it is called with
+ * provided an KeyError is raised.  If a block is given it is called with
  * the missing name to provide a value.  If a default value is given it will
  * be returned when no block is given.
  */

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

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