aboutsummaryrefslogtreecommitdiffstats
path: root/hash.c
diff options
context:
space:
mode:
Diffstat (limited to 'hash.c')
-rw-r--r--hash.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/hash.c b/hash.c
index df0adb19fb..48201b6e60 100644
--- a/hash.c
+++ b/hash.c
@@ -2566,15 +2566,6 @@ env_keys(void)
return ary;
}
-/*
- * call-seq:
- * ENV.each_key { |name| } -> Hash
- * ENV.each_key -> Enumerator
- *
- * Yields each environment variable name.
- *
- * An Enumerator is returned if no block is given.
- */
static VALUE
rb_env_size(VALUE ehash)
{
@@ -2593,6 +2584,15 @@ rb_env_size(VALUE ehash)
return LONG2FIX(cnt);
}
+/*
+ * call-seq:
+ * ENV.each_key { |name| } -> Hash
+ * ENV.each_key -> Enumerator
+ *
+ * Yields each environment variable name.
+ *
+ * An Enumerator is returned if no block is given.
+ */
static VALUE
env_each_key(VALUE ehash)
{