diff options
author | Xavier Noria <[email protected]> | 2024-03-25 10:09:56 +0100 |
---|---|---|
committer | Jean Boussier <[email protected]> | 2024-03-25 14:13:05 +0100 |
commit | 4235bc295b1a0952fd610afb4d333dd03b162bea (patch) | |
tree | eaa1caf609e2d5b18f142b42665ad192f09e6d55 /vm_backtrace.c | |
parent | 54428c2bf10c15663de084bbac20783395f2d8fd (diff) |
Add an example to base_label API
Diffstat (limited to 'vm_backtrace.c')
-rw-r--r-- | vm_backtrace.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/vm_backtrace.c b/vm_backtrace.c index 120f9f9c26..c60618e5c3 100644 --- a/vm_backtrace.c +++ b/vm_backtrace.c @@ -315,9 +315,10 @@ location_base_label(rb_backtrace_location_t *loc) } /* - * Returns the base label of this frame. + * Returns the label of this frame without decoration. * - * Usually same as #label, without decoration. + * For example, if the label is `foo`, this method returns `foo`, same, but if + * the label is +rescue in foo+, this method returns just +foo+. */ static VALUE location_base_label_m(VALUE self) |