Project

General

Profile

Actions

Bug #1619

closed

[PATCH] Kernel.local_variables Documentation: Symbols are Returned on 1.9

Added by runpaint (Run Paint Run Run) almost 16 years ago. Updated about 14 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 1.9.2dev (2009-06-01 trunk 23614) [i686-linux]
Backport:
[ruby-core:23828]

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

Actions #1

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

Also available in: Atom PDF

Like0
Like0