From fa195fa76939d07cc32ca4b4cb8b4320d7ec2dfc Mon Sep 17 00:00:00 2001 From: "yuuji.yaginuma" Date: Wed, 8 Nov 2017 13:41:10 +0900 Subject: [PATCH] Fix typo in doc [ci skip] `enable` and `disable` are instance methods. --- vm_trace.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vm_trace.c b/vm_trace.c index 4e79ae279a134a..7f31de3305311b 100644 --- a/vm_trace.c +++ b/vm_trace.c @@ -1217,7 +1217,7 @@ rb_tracepoint_new(VALUE target_thval, rb_event_flag_t events, void (*func)(VALUE * * Returns a new TracePoint object, not enabled by default. * - * Next, in order to activate the trace, you must use TracePoint.enable + * Next, in order to activate the trace, you must use TracePoint#enable * * trace = TracePoint.new(:call) do |tp| * p [tp.lineno, tp.defined_class, tp.method_id, tp.event] @@ -1232,7 +1232,7 @@ rb_tracepoint_new(VALUE target_thval, rb_event_flag_t events, void (*func)(VALUE * # [48, IRB::Notifier::AbstractNotifier, :printf, :call] * # ... * - * When you want to deactivate the trace, you must use TracePoint.disable + * When you want to deactivate the trace, you must use TracePoint#disable * * trace.disable *