@@ -1135,7 +1135,7 @@ cont_restore_0(rb_context_t *cont, VALUE *addr_in_prev_frame)
1135
1135
* Continuation objects are generated by Kernel#callcc,
1136
1136
* after having +require+d <i>continuation</i>. They hold
1137
1137
* a return address and execution context, allowing a nonlocal return
1138
- * to the end of the <code> callcc</code> block from anywhere within a
1138
+ * to the end of the # callcc block from anywhere within a
1139
1139
* program. Continuations are somewhat analogous to a structured
1140
1140
* version of C's <code>setjmp/longjmp</code> (although they contain
1141
1141
* more state, so you might consider them closer to threads).
@@ -1320,11 +1320,10 @@ rollback_ensure_stack(VALUE self,rb_ensure_list_t *current,rb_ensure_entry_t *ta
1320
1320
* cont.call(args, ...)
1321
1321
* cont[args, ...]
1322
1322
*
1323
- * Invokes the continuation. The program continues from the end of the
1324
- * <code>callcc</code> block. If no arguments are given, the original
1325
- * <code>callcc</code> returns <code>nil</code>. If one argument is
1326
- * given, <code>callcc</code> returns it. Otherwise, an array
1327
- * containing <i>args</i> is returned.
1323
+ * Invokes the continuation. The program continues from the end of
1324
+ * the #callcc block. If no arguments are given, the original #callcc
1325
+ * returns +nil+. If one argument is given, #callcc returns
1326
+ * it. Otherwise, an array containing <i>args</i> is returned.
1328
1327
*
1329
1328
* callcc {|cont| cont.call } #=> nil
1330
1329
* callcc {|cont| cont.call 1 } #=> 1
@@ -1376,10 +1375,10 @@ rb_cont_call(int argc, VALUE *argv, VALUE contval)
1376
1375
* manpage to configure the size of the fiber stack(s).
1377
1376
*
1378
1377
* When a fiber is created it will not run automatically. Rather it must
1379
- * be explicitly asked to run using the <code> Fiber#resume</code> method.
1378
+ * be explicitly asked to run using the Fiber#resume method.
1380
1379
* The code running inside the fiber can give up control by calling
1381
- * <code> Fiber.yield</code> in which case it yields control back to caller
1382
- * (the caller of the <code> Fiber#resume</code> ).
1380
+ * Fiber.yield in which case it yields control back to caller (the
1381
+ * caller of the Fiber#resume).
1383
1382
*
1384
1383
* Upon yielding or termination the Fiber returns the value of the last
1385
1384
* executed expression
@@ -1401,10 +1400,10 @@ rb_cont_call(int argc, VALUE *argv, VALUE contval)
1401
1400
* 2
1402
1401
* FiberError: dead fiber called
1403
1402
*
1404
- * The <code> Fiber#resume</code> method accepts an arbitrary number of
1405
- * parameters, if it is the first call to <code> resume</code> then they
1406
- * will be passed as block arguments. Otherwise they will be the return
1407
- * value of the call to <code> Fiber.yield</code>
1403
+ * The Fiber#resume method accepts an arbitrary number of parameters,
1404
+ * if it is the first call to # resume then they will be passed as
1405
+ * block arguments. Otherwise they will be the return value of the
1406
+ * call to Fiber.yield
1408
1407
*
1409
1408
* Example:
1410
1409
*
@@ -1946,16 +1945,16 @@ rb_fiber_alive_p(VALUE fibval)
1946
1945
* call-seq:
1947
1946
* fiber.resume(args, ...) -> obj
1948
1947
*
1949
- * Resumes the fiber from the point at which the last <code> Fiber.yield</code>
1950
- * was called, or starts running it if it is the first call to
1951
- * <code> resume</code> . Arguments passed to resume will be the value of
1952
- * the <code> Fiber.yield</code> expression or will be passed as block
1953
- * parameters to the fiber's block if this is the first <code> resume</code> .
1948
+ * Resumes the fiber from the point at which the last Fiber.yield was
1949
+ * called, or starts running it if it is the first call to
1950
+ * # resume. Arguments passed to resume will be the value of the
1951
+ * Fiber.yield expression or will be passed as block parameters to
1952
+ * the fiber's block if this is the first # resume.
1954
1953
*
1955
1954
* Alternatively, when resume is called it evaluates to the arguments passed
1956
- * to the next <code> Fiber.yield</code> statement inside the fiber's block
1955
+ * to the next Fiber.yield statement inside the fiber's block
1957
1956
* or to the block value if it runs to completion without any
1958
- * <code> Fiber.yield</code>
1957
+ * Fiber.yield
1959
1958
*/
1960
1959
static VALUE
1961
1960
rb_fiber_m_resume (int argc , VALUE * argv , VALUE fib )
@@ -1970,7 +1969,7 @@ rb_fiber_m_resume(int argc, VALUE *argv, VALUE fib)
1970
1969
* fiber.raise(exception [, string [, array]]) -> obj
1971
1970
*
1972
1971
* Raises an exception in the fiber at the point at which the last
1973
- * <code> Fiber.yield</code> was called, or at the start if neither +resume+
1972
+ * Fiber.yield was called, or at the start if neither +resume+
1974
1973
* nor +raise+ were called before.
1975
1974
*
1976
1975
* With no arguments, raises a +RuntimeError+. With a single +String+
@@ -1996,7 +1995,7 @@ rb_fiber_raise(int argc, VALUE *argv, VALUE fib)
1996
1995
* Transfer control to another fiber, resuming it from where it last
1997
1996
* stopped or starting it if it was not resumed before. The calling
1998
1997
* fiber will be suspended much like in a call to
1999
- * <code> Fiber.yield</code> . You need to <code>require 'fiber'</code>
1998
+ * Fiber.yield. You need to <code>require 'fiber'</code>
2000
1999
* before using this method.
2001
2000
*
2002
2001
* The fiber which receives the transfer call is treats it much like
@@ -2048,9 +2047,9 @@ rb_fiber_m_transfer(int argc, VALUE *argv, VALUE fibval)
2048
2047
*
2049
2048
* Yields control back to the context that resumed the fiber, passing
2050
2049
* along any arguments that were passed to it. The fiber will resume
2051
- * processing at this point when <code> resume</code> is called next.
2052
- * Any arguments passed to the next <code> resume</code> will be the
2053
- * value that this <code> Fiber.yield</code> expression evaluates to.
2050
+ * processing at this point when # resume is called next.
2051
+ * Any arguments passed to the next # resume will be the value that
2052
+ * this Fiber.yield expression evaluates to.
2054
2053
*/
2055
2054
static VALUE
2056
2055
rb_fiber_s_yield (int argc , VALUE * argv , VALUE klass )
0 commit comments