aboutsummaryrefslogtreecommitdiffstats
path: root/hash.c
diff options
context:
space:
mode:
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.
*/