[DOC] Update TracePoint#binding docs for 3.2 behavior

This commit is contained in:
zverok 2023-02-15 21:30:58 +02:00 committed by Victor Shepelev
parent 01509f344a
commit 0c0b9191ce
Notes: git 2023-02-19 20:33:15 +00:00

View File

@ -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