aboutsummaryrefslogtreecommitdiffstats
path: root/trace_point.rb
diff options
context:
space:
mode:
authorUlysse Buonomo <buonomo.ulysse@gmail.com>2021-09-25 17:28:48 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2021-10-30 10:23:07 +0900
commit1d0ce1a349bcf836d547d618b346345ae5fca44d (patch)
tree961273455becafbaf0b98e0f21dbe25118a12dff /trace_point.rb
parent4e0747a8a29e4d61744a802aee2c15289c2f9d19 (diff)
downloadruby-1d0ce1a349bcf836d547d618b346345ae5fca44d.tar.gz
[DOC] Fix `TracePoint.trace` format [ci skip]
Signed-off-by: Ulysse Buonomo <buonomo.ulysse@gmail.com>
Diffstat (limited to 'trace_point.rb')
-rw-r--r--trace_point.rb8
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>