diff --git a/ChangeLog b/ChangeLog index 70245ac936..4a46b0ea15 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Mon Aug 5 22:23:59 2013 Zachary Scott + + * 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 + Mon Aug 5 17:38:15 2013 Nobuyoshi Nakada * win32/win32.c (rb_w32_write_console): use MultiByteToWideChar() for diff --git a/vm_trace.c b/vm_trace.c index 48d4e340e0..d01ff8cbbb 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 - * #=> # + * #=> # * * trace.enable - * #=> # + * #=> 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 - * #=> # + * #=> # * * trace.enable - * #=> # + * #=> false * * 0 / 0 * #=> [5, :raise, #] @@ -1349,7 +1349,7 @@ Init_vm_trace(void) * automatically. * * trace = TracePoint.trace(:call) { |tp| [tp.lineno, tp.event] } - * #=> # + * #=> # * * trace.enabled? #=> true */