From b0d53d51f5ce538095ffebaa0e8fd0552b5ebd75 Mon Sep 17 00:00:00 2001 From: ayumin Date: Sat, 14 Jul 2012 08:31:21 +0000 Subject: * cont.c (cont_restore_0): improve docs. [Bug #6706][ruby-core:46243] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36392 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- cont.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'cont.c') diff --git a/cont.c b/cont.c index 83769abb59..dee7d1690e 100644 --- a/cont.c +++ b/cont.c @@ -799,11 +799,11 @@ cont_restore_0(rb_context_t *cont, VALUE *addr_in_prev_frame) /* * Document-class: Continuation * - * Continuation objects are generated by Kernel#callcc, - * after having required continuation. They hold + * Continuation objects are generated by Kernel#callcc, + * after having +require+d continuation. They hold * a return address and execution context, allowing a nonlocal return * to the end of the callcc block from anywhere within a - * program. Continuations are somewhat analogous to a structured + * program. Continuations are somewhat analogous to a structured * version of C's setjmp/longjmp (although they contain * more state, so you might consider them closer to threads). * @@ -849,15 +849,15 @@ cont_restore_0(rb_context_t *cont, VALUE *addr_in_prev_frame) * call-seq: * callcc {|cont| block } -> obj * - * Generates a Continuation object, which it passes to + * Generates a Continuation object, which it passes to * the associated block. You need to require * 'continuation' before using this method. Performing a - * cont.call will cause the callcc + * cont.call will cause the #callcc * to return (as will falling through the end of the block). The - * value returned by the callcc is the value of the + * value returned by the #callcc is the value of the * block, or the value passed to cont.call. See - * class Continuation for more details. Also see - * Kernel::throw for an alternative mechanism for + * class Continuation for more details. Also see + * Kernel#throw for an alternative mechanism for * unwinding a call stack. */ -- cgit v1.2.3