[前][次][番号順一覧][スレッド一覧]

ruby-changes:24341

From: ayumin <ko1@a...>
Date: Sat, 14 Jul 2012 17:31:32 +0900 (JST)
Subject: [ruby-changes:24341] ayumin:r36392 (trunk): * cont.c (cont_restore_0): improve docs. [Bug #6706]

ayumin	2012-07-14 17:31:21 +0900 (Sat, 14 Jul 2012)

  New Revision: 36392

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=36392

  Log:
    * cont.c (cont_restore_0): improve docs. [Bug #6706][ruby-core:46243]

  Modified files:
    trunk/ChangeLog
    trunk/cont.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 36391)
+++ ChangeLog	(revision 36392)
@@ -1,3 +1,8 @@
+Sat Jul 14 17:17:55 2012  Ayumu AIZAWA  <ayumu.aizawa@g...>
+
+	* cont.c (cont_restore_0): improve docs. [Bug #6706][ruby-core:46243]
+    patched by Oscar Del Ben via https://github.com/ruby/ruby/pull/140
+
 Sat Jul 14 17:08:13 2012  Nobuyoshi Nakada  <nobu@r...>
 
 	* hash.c (rb_hash_s_create): raise an exception, when input elements
Index: cont.c
===================================================================
--- cont.c	(revision 36391)
+++ cont.c	(revision 36392)
@@ -799,11 +799,11 @@
 /*
  *  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 @@
  *  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.
  */
 

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]