summaryrefslogtreecommitdiff
path: root/trace_point.rb
diff options
context:
space:
mode:
authorJeremy Evans <code@jeremyevans.net>2021-06-18 11:57:55 -0700
committerSamuel Williams <samuel.williams@oriontransfer.co.nz>2021-06-19 13:55:28 +1200
commit72a4e1d3bbbdfff71ec2c6b2ddb3b9323193cacd (patch)
tree20b8a8e37dfba827f41d53c13be656d417d8854f /trace_point.rb
parent53a094ea45567cdfb7b8aab2f3dde96a15b89565 (diff)
Tweak description of TracePoint :line event
"code" here is too ambiguous. TracePoint events only occur if there is a new statement or expression on that line, not if the line is a continuation of a previous statement or expression and there is no new statement or expression on the line. For example: ``` [ foo, # start of expression, line event bar # continuation of expression, no line event ] [ foo, # start of expression, line event (bar) # new expression, line event ] foo( # start of expression, line event bar # continuation of expression, no line event ) foo( # start of expression, line event (bar) # new expression, line event ) ``` Fixes [Bug #15634]
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4589
Diffstat (limited to 'trace_point.rb')
-rw-r--r--trace_point.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/trace_point.rb b/trace_point.rb
index 2e85369e65..4272448682 100644
--- a/trace_point.rb
+++ b/trace_point.rb
@@ -31,7 +31,7 @@
#
# To filter what is traced, you can pass any of the following as +events+:
#
-# +:line+:: execute code on a new line
+# +:line+:: execute an expression or statement on a new line
# +:class+:: start a class or module definition
# +:end+:: finish a class or module definition
# +:call+:: call a Ruby method