aboutsummaryrefslogtreecommitdiffstats
path: root/cont.c
diff options
context:
space:
mode:
authorJeremy Evans <code@jeremyevans.net>2020-05-25 19:46:12 -0700
committerJeremy Evans <code@jeremyevans.net>2020-05-25 19:46:12 -0700
commitfaab5cbeb762adec4983d603d71e72add5108249 (patch)
treed48c29beb87db2abfa68c346f4c5d8d3b4aa1ed6 /cont.c
parentc9fe4ebd29f71805648a048d2cc431c94039ceaa (diff)
downloadruby-faab5cbeb762adec4983d603d71e72add5108249.tar.gz
Fix documentation for Fiber#raise [ci skip]
Fixes [Bug #16912]
Diffstat (limited to 'cont.c')
-rw-r--r--cont.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cont.c b/cont.c
index a10e0580e6..37a9dc8adf 100644
--- a/cont.c
+++ b/cont.c
@@ -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,