summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-05-02 14:30:48 +0000
committernagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-05-02 14:30:48 +0000
commitf0feb0a4f024f8763763005937c664ef3013a595 (patch)
treec06b36962348b0eae12e507ab379d959e00cca4f
parent9cf2170e78dd1f6f9f7978d05d6947e6025dd61f (diff)
* cont.c (rb_fiber_m_transfer): improve sample code in Fiber#transfer
documentation. emphasize the difference between transfer and resume. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35521 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--cont.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 03122c7..aeebf56 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Wed May 2 23:26:04 2012 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
+
+ * cont.c (rb_fiber_m_transfer): improve sample code in Fiber#transfer
+ documentation. emphasize the difference between transfer and resume.
+
Wed May 2 23:21:20 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* parse.y (parser_yylex): allow spaces between lambda arrow and
diff --git a/cont.c b/cont.c
index d900d5a..2a90771 100644
--- a/cont.c
+++ b/cont.c
@@ -1436,6 +1436,7 @@ rb_fiber_m_resume(int argc, VALUE *argv, VALUE fib)
* fiber2 = Fiber.new do
* puts "In Fiber 2"
* fiber1.transfer
+ * puts "Never see this message"
* end
*
* fiber3 = Fiber.new do