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

ruby-changes:61375

From: Jeremy <ko1@a...>
Date: Tue, 26 May 2020 11:47:20 +0900 (JST)
Subject: [ruby-changes:61375] faab5cbeb7 (master): Fix documentation for Fiber#raise [ci skip]

https://git.ruby-lang.org/ruby.git/commit/?id=faab5cbeb7

From faab5cbeb762adec4983d603d71e72add5108249 Mon Sep 17 00:00:00 2001
From: Jeremy Evans <code@j...>
Date: Mon, 25 May 2020 19:46:12 -0700
Subject: Fix documentation for Fiber#raise [ci skip]

Fixes [Bug #16912]

diff --git a/cont.c b/cont.c
index a10e058..37a9dc8 100644
--- a/cont.c
+++ b/cont.c
@@ -2261,8 +2261,8 @@ rb_fiber_m_resume(int argc, VALUE *argv, VALUE fiber) https://github.com/ruby/ruby/blob/trunk/cont.c#L2261
  *     fiber.raise(exception [, string [, array]]) -> obj
  *
  *  Raises an exception in the fiber at the point at which the last
- *  Fiber.yield was called, or at the start if neither +resume+
- *  nor +raise+ were called before.
+ *  +Fiber.yield+ was called. If the fiber has not been started or has
+ *  already run to completion, raises +FiberError+.
  *
  *  With no arguments, raises a +RuntimeError+. With a single +String+
  *  argument, raises a +RuntimeError+ with the string as a message.  Otherwise,
-- 
cgit v0.10.2


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

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