Skip to content

Commit cd66d15

Browse files
committed
[Bug #21783] Fix documentation of {Method,UnboundMethod,Proc}#source_location
1 parent d82fc33 commit cd66d15

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

proc.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1543,9 +1543,9 @@ rb_iseq_location(const rb_iseq_t *iseq)
15431543
* The returned Array contains:
15441544
* (1) the Ruby source filename
15451545
* (2) the line number where the definition starts
1546-
* (3) the column number where the definition starts
1546+
* (3) the position where the definition starts, in number of bytes from the start of the line
15471547
* (4) the line number where the definition ends
1548-
* (5) the column number where the definitions ends
1548+
* (5) the position where the definitions ends, in number of bytes from the start of the line
15491549
*
15501550
* This method will return +nil+ if the Proc was not defined in Ruby (i.e. native).
15511551
*/
@@ -3203,9 +3203,9 @@ rb_method_entry_location(const rb_method_entry_t *me)
32033203
* The returned Array contains:
32043204
* (1) the Ruby source filename
32053205
* (2) the line number where the definition starts
3206-
* (3) the column number where the definition starts
3206+
* (3) the position where the definition starts, in number of bytes from the start of the line
32073207
* (4) the line number where the definition ends
3208-
* (5) the column number where the definitions ends
3208+
* (5) the position where the definitions ends, in number of bytes from the start of the line
32093209
*
32103210
* This method will return +nil+ if the method was not defined in Ruby (i.e. native).
32113211
*/

0 commit comments

Comments
 (0)