Actions
Bug #1619
closed[PATCH] Kernel.local_variables Documentation: Symbols are Returned on 1.9
Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 1.9.2dev (2009-06-01 trunk 23614) [i686-linux]
Backport:
Description
=begin
The documentation for Kernel.local_variables shows an Array of Strings being returned, when in fact it is an Array of Symbols.
diff --git a/vm_eval.c b/vm_eval.c
index b4db202..6662cee 100644
--- a/vm_eval.c
+++ b/vm_eval.c
@@ -1357,7 +1357,7 @@ rb_backtrace_each(rb_backtrace_iter_func *iter, void *arg)
-
for i in 1..10
-
# ...
-
end
-
-
local_variables #=> ["fred", "i"]
-
-
-
local_variables #=> [:fred, :i]
-
static VALUE
=end
Updated by nobu (Nobuyoshi Nakada) almost 16 years ago
- Status changed from Open to Closed
- % Done changed from 0 to 100
=begin
Applied in changeset r23676.
=end
Actions
Like0
Like0