summaryrefslogtreecommitdiff
path: root/hash.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-01-19 06:39:44 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-01-19 06:39:44 +0000
commitc59e739b02e3c609bd988970674cbd05d6ae285d (patch)
tree7aebeefc81309c149779c65e68de1d9b6c11837b /hash.c
parent50db992a6ad43e98a5cdf5fda757f614f6c5156f (diff)
ENV#fetch: fix documentation of raised exception
[Fix GH-1514] Author: Misty De Meo <mistydemeo@github.com> git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57371 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'hash.c')
-rw-r--r--hash.c2
1 files changed, 1 insertions, 1 deletions
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.
*/