1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Adds a reference to TracePoint to binding docs

This change adds an explicit reference to `TracePoint` in the
documentation for `binding`. Currently it only refers to the now
deprecated `Kernel#set_trace_func`. This reference is left alone for
continuity in the documentation.
[Fix GH-2079]

Co-authored-by: Brandon Weaver <baweaver@squareup.com>
This commit is contained in:
Kazuhiro NISHIYAMA 2019-04-22 23:10:10 +09:00
parent 8c689e216f
commit 6fbf4e22c8
No known key found for this signature in database
GPG key ID: 262ED8DBB4222F7A

2
proc.c
View file

@ -3554,7 +3554,7 @@ Init_Proc(void)
* possibly an iterator block that can be accessed in this context
* are all retained. Binding objects can be created using
* Kernel#binding, and are made available to the callback of
* Kernel#set_trace_func.
* Kernel#set_trace_func and instances of TracePoint.
*
* These binding objects can be passed as the second argument of the
* Kernel#eval method, establishing an environment for the