summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
authorJean Boussier <byroot@ruby-lang.org>2024-03-14 15:50:19 +0100
committerJean Boussier <jean.boussier@gmail.com>2024-03-18 08:55:46 +0100
commit8a8df4917488ff1c8034119a94216f1b04ed3bfc (patch)
treed274d2a5f6d41d4c62626a925b796df50c24d0a7 /eval.c
parent454b939d7c9223ca04aa06a79939187ee6f3396c (diff)
Update set_backtrace documentation
Followup: https://github.com/ruby/ruby/pull/10017 [Feature #13557]
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/eval.c b/eval.c
index 858890b83f..c855a4952e 100644
--- a/eval.c
+++ b/eval.c
@@ -761,7 +761,8 @@ rb_f_raise(int argc, VALUE *argv)
* object that returns an +Exception+ object when sent an +exception+
* message). The optional second parameter sets the message associated with
* the exception (accessible via Exception#message), and the third parameter
- * is an array of callback information (accessible via Exception#backtrace).
+ * is an array of callback information (accessible via
+ * Exception#backtrace_locations or Exception#backtrace).
* The +cause+ of the generated exception (accessible via Exception#cause)
* is automatically set to the "current" exception (<code>$!</code>), if any.
* An alternative value, either an +Exception+ object or +nil+, can be
@@ -771,7 +772,7 @@ rb_f_raise(int argc, VALUE *argv)
* <code>begin...end</code> blocks.
*
* raise "Failed to create socket"
- * raise ArgumentError, "No parameters", caller
+ * raise ArgumentError, "No parameters", caller_locations
*/
static VALUE