diff options
author | Ulysse Buonomo <[email protected]> | 2021-09-25 17:28:48 +0200 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2021-10-30 10:23:07 +0900 |
commit | 1d0ce1a349bcf836d547d618b346345ae5fca44d (patch) | |
tree | 961273455becafbaf0b98e0f21dbe25118a12dff /trace_point.rb | |
parent | 4e0747a8a29e4d61744a802aee2c15289c2f9d19 (diff) |
[DOC] Fix `TracePoint.trace` format [ci skip]
Signed-off-by: Ulysse Buonomo <[email protected]>
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/4894
Diffstat (limited to 'trace_point.rb')
-rw-r--r-- | trace_point.rb | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/trace_point.rb b/trace_point.rb index 4272448682..7c2fdd5256 100644 --- a/trace_point.rb +++ b/trace_point.rb @@ -118,13 +118,11 @@ class TracePoint Primitive.tracepoint_stat_s end - # Document-method: trace - # # call-seq: - # TracePoint.trace(*events) { |obj| block } -> obj + # TracePoint.trace(*events) { |obj| block } -> obj # - # A convenience method for TracePoint.new, that activates the trace - # automatically. + # A convenience method for TracePoint.new, that activates the trace + # automatically. # # trace = TracePoint.trace(:call) { |tp| [tp.lineno, tp.event] } # #=> #<TracePoint:enabled> |