mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[DOC] Fix default offset of String#byterindex
This commit is contained in:
parent
cd9a9bdfc5
commit
b068a53dc9
1 changed files with 2 additions and 2 deletions
4
string.c
4
string.c
|
@ -4262,8 +4262,8 @@ rb_str_byterindex(VALUE str, VALUE sub, long pos)
|
|||
|
||||
/*
|
||||
* call-seq:
|
||||
* byterindex(substring, offset = self.length) -> integer or nil
|
||||
* byterindex(regexp, offset = self.length) -> integer or nil
|
||||
* byterindex(substring, offset = self.bytesize) -> integer or nil
|
||||
* byterindex(regexp, offset = self.bytesize) -> integer or nil
|
||||
*
|
||||
* Returns the \Integer byte-based index of the _last_ occurrence of the given +substring+,
|
||||
* or +nil+ if none found:
|
||||
|
|
Loading…
Add table
Reference in a new issue