summaryrefslogtreecommitdiff
path: root/trace_point.rb
diff options
context:
space:
mode:
authorzverok <zverok.offline@gmail.com>2023-02-15 21:30:58 +0200
committerVictor Shepelev <zverok.offline@gmail.com>2023-02-19 22:32:52 +0200
commit0c0b9191ce96413258e8124bb4661ddae60cdf7a (patch)
tree964d1bc8ce997c1b3a65ddb4023e31f9085a6e6c /trace_point.rb
parent01509f344a9ebc2f10950f261581c23395d0ab7c (diff)
downloadruby-0c0b9191ce96413258e8124bb4661ddae60cdf7a.tar.gz
[DOC] Update TracePoint#binding docs for 3.2 behavior
Diffstat (limited to 'trace_point.rb')
-rw-r--r--trace_point.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/trace_point.rb b/trace_point.rb
index 82604a59f0..ac4086589c 100644
--- a/trace_point.rb
+++ b/trace_point.rb
@@ -377,9 +377,8 @@ class TracePoint
# Return the generated binding object from event.
#
- # Note that for +c_call+ and +c_return+ events, the binding returned is the
- # binding of the nearest Ruby method calling the C method, since C methods
- # themselves do not have bindings.
+ # Note that for +c_call+ and +c_return+ events, the method will return
+ # +nil+, since C methods themselves do not have bindings.
def binding
Primitive.tracepoint_attr_binding
end