1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Fix documentation for Fiber#raise [ci skip]

Fixes [Bug #16912]
This commit is contained in:
Jeremy Evans 2020-05-25 19:46:12 -07:00
parent c9fe4ebd29
commit faab5cbeb7

4
cont.c
View file

@ -2261,8 +2261,8 @@ rb_fiber_m_resume(int argc, VALUE *argv, VALUE fiber)
* 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,