From 948185248c8e8a48abf2e0ad5d1916aa5b1c0a7c Mon Sep 17 00:00:00 2001 From: mame Date: Mon, 24 May 2010 16:48:00 +0000 Subject: * vm_eval.c (rb_f_caller): update rdoc. a patch from Nobuhiro IMAI in [ruby-dev:41387]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27995 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm_eval.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'vm_eval.c') diff --git a/vm_eval.c b/vm_eval.c index cff05a0c3f..e609ca0e0b 100644 --- a/vm_eval.c +++ b/vm_eval.c @@ -1536,7 +1536,7 @@ rb_catch_obj(VALUE tag, VALUE (*func)(), VALUE data) /* * call-seq: - * caller(start=1) -> Array or nil + * caller(start=1) -> array or nil * * Returns the current execution stack---an array containing strings in * the form ``file:line'' or ``file:line: in @@ -1544,7 +1544,7 @@ rb_catch_obj(VALUE tag, VALUE (*func)(), VALUE data) * determines the number of initial stack entries to omit from the * result. * - * Returns +nil+ if _start_ is greater than or equal to the size of + * Returns +nil+ if _start_ is greater than the size of * current execution stack. * * def a(skip) @@ -1556,11 +1556,12 @@ rb_catch_obj(VALUE tag, VALUE (*func)(), VALUE data) * def c(skip) * b(skip) * end - * c(0) #=> ["prog:2:in `a'", "prog:5:in `b'", "prog:8:in `c'", "prog:10"] - * c(1) #=> ["prog:5:in `b'", "prog:8:in `c'", "prog:11"] - * c(2) #=> ["prog:8:in `c'", "prog:12"] - * c(3) #=> ["prog:13"] - * c(4) #=> nil + * c(0) #=> ["prog:2:in `a'", "prog:5:in `b'", "prog:8:in `c'", "prog:10:in `
'"] + * c(1) #=> ["prog:5:in `b'", "prog:8:in `c'", "prog:11:in `
'"] + * c(2) #=> ["prog:8:in `c'", "prog:12:in `
'"] + * c(3) #=> ["prog:13:in `
'"] + * c(4) #=> [] + * c(5) #=> nil */ static VALUE -- cgit v1.2.3