Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Improve documentation of Continuation #140

Closed
wants to merge 1 commit into from

2 participants

Oscar Del Ben Ayumu AIZAWA
Oscar Del Ben

Add links to Kernel#callcc for cross reference.
Improve formatting.

http://bugs.ruby-lang.org/issues/6706

cc @drbrain

Oscar Del Ben oscardelben Improve documentation of Continuation
Add links to Kernel#callcc for cross reference.
Improve formatting.
77d282a
Ayumu AIZAWA ayumin closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jul 07, 2012
  1. Oscar Del Ben

    Improve documentation of Continuation

    oscardelben authored
    Add links to Kernel#callcc for cross reference.
    Improve formatting.
This page is out of date. Refresh to see the latest.
Showing with 8 additions and 8 deletions.
  1. +8 8 cont.c
16 cont.c
View
@@ -799,11 +799,11 @@ cont_restore_0(rb_context_t *cont, VALUE *addr_in_prev_frame)
/*
* Document-class: Continuation
*
- * Continuation objects are generated by <code>Kernel#callcc</code>,
- * after having <code>require</code>d <i>continuation</i>. They hold
+ * Continuation objects are generated by Kernel#callcc,
+ * after having +require+d <i>continuation</i>. They hold
* a return address and execution context, allowing a nonlocal return
* to the end of the <code>callcc</code> 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 <code>setjmp/longjmp</code> (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 <code>Continuation</code> object, which it passes to
+ * Generates a Continuation object, which it passes to
* the associated block. You need to <code>require
* 'continuation'</code> before using this method. Performing a
- * <em>cont</em><code>.call</code> will cause the <code>callcc</code>
+ * <em>cont</em><code>.call</code> will cause the #callcc
* to return (as will falling through the end of the block). The
- * value returned by the <code>callcc</code> is the value of the
+ * value returned by the #callcc is the value of the
* block, or the value passed to <em>cont</em><code>.call</code>. See
- * class <code>Continuation</code> for more details. Also see
- * <code>Kernel::throw</code> for an alternative mechanism for
+ * class Continuation for more details. Also see
+ * Kernel#throw for an alternative mechanism for
* unwinding a call stack.
*/
Something went wrong with that request. Please try again.