From c59e739b02e3c609bd988970674cbd05d6ae285d Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 19 Jan 2017 06:39:44 +0000 Subject: [PATCH] ENV#fetch: fix documentation of raised exception [Fix GH-1514] Author: Misty De Meo git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57371 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- hash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hash.c b/hash.c index 4672934566..3e7615876e 100644 --- a/hash.c +++ b/hash.c @@ -3263,7 +3263,7 @@ rb_f_getenv(VALUE obj, VALUE name) * 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. */