Skip to content

Commit

Permalink
Fix typo in doc [ci skip]
Browse files Browse the repository at this point in the history
`enable` and `disable` are instance methods.

Patch by: yuuji.yaginuma <yuuji.yaginuma@gmail.com>

ruby#1744
[Fix rubyGH-1744]

git-svn-id: svn+ssh://svn.ruby-lang.org/ruby/trunk@60718 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
amatsuda committed Nov 8, 2017
1 parent 756ba41 commit b32d3ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vm_trace.c
Expand Up @@ -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]
Expand All @@ -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
*
Expand Down

0 comments on commit b32d3ee

Please sign in to comment.