Skip to content

Commit 4235bc2

Browse files
fxnbyroot
authored andcommitted
Add an example to base_label API
1 parent 54428c2 commit 4235bc2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

vm_backtrace.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,9 +315,10 @@ location_base_label(rb_backtrace_location_t *loc)
315315
}
316316

317317
/*
318-
* Returns the base label of this frame.
318+
* Returns the label of this frame without decoration.
319319
*
320-
* Usually same as #label, without decoration.
320+
* For example, if the label is `foo`, this method returns `foo`, same, but if
321+
* the label is +rescue in foo+, this method returns just +foo+.
321322
*/
322323
static VALUE
323324
location_base_label_m(VALUE self)

0 commit comments

Comments
 (0)