summaryrefslogtreecommitdiff
path: root/vm_trace.c
diff options
context:
space:
mode:
authorzzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-08-05 13:25:02 +0000
committerzzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-08-05 13:25:02 +0000
commitf089ea1cd96ddb80836812352cc3700f71a4b912 (patch)
tree58e71742abefbfeb8c96264022deae3d360e17d9 /vm_trace.c
parent8d564597fa928ab5d70cdd8e9d0b603c99ebab11 (diff)
* vm_trace.c: [DOC] Fix TracePoint return values in examples
Based on a patch by @sho-h [Fixes GH-373] https://github.com/ruby/ruby/pull/373 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42386 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_trace.c')
-rw-r--r--vm_trace.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/vm_trace.c b/vm_trace.c
index 48d4e34..d01ff8c 100644
--- a/vm_trace.c
+++ b/vm_trace.c
@@ -1159,10 +1159,10 @@ rb_tracepoint_new(VALUE target_thval, rb_event_flag_t events, void (*func)(VALUE
* trace = TracePoint.new(:call) do |tp|
* p [tp.lineno, tp.defined_class, tp.method_id, tp.event]
* end
- * #=> #<TracePoint:0x007f17372cdb20>
+ * #=> #<TracePoint:disabled>
*
* trace.enable
- * #=> #<TracePoint:0x007f17372cdb20>
+ * #=> false
*
* puts "Hello, TracePoint!"
* # ...
@@ -1302,10 +1302,10 @@ Init_vm_trace(void)
* trace = TracePoint.new(:raise) do |tp|
* p [tp.lineno, tp.event, tp.raised_exception]
* end
- * #=> #<TracePoint:0x007f786a452448>
+ * #=> #<TracePoint:disabled>
*
* trace.enable
- * #=> #<TracePoint:0x007f786a452448>
+ * #=> false
*
* 0 / 0
* #=> [5, :raise, #<ZeroDivisionError: divided by 0>]
@@ -1349,7 +1349,7 @@ Init_vm_trace(void)
* automatically.
*
* trace = TracePoint.trace(:call) { |tp| [tp.lineno, tp.event] }
- * #=> #<TracePoint:0x007f786a452448>
+ * #=> #<TracePoint:enabled>
*
* trace.enabled? #=> true
*/