1
0
Fork 0
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:
Kazuhiro NISHIYAMA 2022-03-09 15:15:11 +09:00
parent cd9a9bdfc5
commit b068a53dc9
No known key found for this signature in database
GPG key ID: 262ED8DBB4222F7A

View file

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