[DOC] Update TracePoint#binding docs for 3.2 behavior

This commit is contained in:
zverok 2023-02-15 21:30:58 +02:00 коммит произвёл Victor Shepelev
Родитель 01509f344a
Коммит 0c0b9191ce
1 изменённых файлов: 2 добавлений и 3 удалений

Просмотреть файл

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