mirror of
https://github.com/ruby/ruby.git
synced 2026-01-26 12:14:51 +00:00
[Bug #21783] Fix documentation of {Method,UnboundMethod,Proc}#source_location
This commit is contained in:
parent
d82fc3360d
commit
cd66d15858
Notes:
git
2025-12-30 15:03:19 +00:00
8
proc.c
8
proc.c
@ -1543,9 +1543,9 @@ rb_iseq_location(const rb_iseq_t *iseq)
|
||||
* The returned Array contains:
|
||||
* (1) the Ruby source filename
|
||||
* (2) the line number where the definition starts
|
||||
* (3) the column number where the definition starts
|
||||
* (3) the position where the definition starts, in number of bytes from the start of the line
|
||||
* (4) the line number where the definition ends
|
||||
* (5) the column number where the definitions ends
|
||||
* (5) the position where the definitions ends, in number of bytes from the start of the line
|
||||
*
|
||||
* This method will return +nil+ if the Proc was not defined in Ruby (i.e. native).
|
||||
*/
|
||||
@ -3203,9 +3203,9 @@ rb_method_entry_location(const rb_method_entry_t *me)
|
||||
* The returned Array contains:
|
||||
* (1) the Ruby source filename
|
||||
* (2) the line number where the definition starts
|
||||
* (3) the column number where the definition starts
|
||||
* (3) the position where the definition starts, in number of bytes from the start of the line
|
||||
* (4) the line number where the definition ends
|
||||
* (5) the column number where the definitions ends
|
||||
* (5) the position where the definitions ends, in number of bytes from the start of the line
|
||||
*
|
||||
* This method will return +nil+ if the method was not defined in Ruby (i.e. native).
|
||||
*/
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user