From: Run Paint Run Run Date: 2009-06-13T03:33:27+09:00 Subject: [ruby-core:23828] [Bug #1619] [PATCH] Kernel.local_variables Documentation: Symbols are Returned on 1.9 Bug #1619: [PATCH] Kernel.local_variables Documentation: Symbols are Returned on 1.9 http://redmine.ruby-lang.org/issues/show/1619 Author: Run Paint Run Run Status: Open, Priority: Low Category: DOC ruby -v: ruby 1.9.2dev (2009-06-01 trunk 23614) [i686-linux] 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 ---------------------------------------- http://redmine.ruby-lang.org