diff options
author | Kazuhiro NISHIYAMA <[email protected]> | 2022-03-09 15:15:11 +0900 |
---|---|---|
committer | Kazuhiro NISHIYAMA <[email protected]> | 2022-03-09 15:15:11 +0900 |
commit | b068a53dc9f38e98141c8b43249c73289af557bb (patch) | |
tree | 393cbcddda049257cd497d887c6fb009c78c2ed1 /string.c | |
parent | cd9a9bdfc57bd5e3f5378345720e3c6aa45fdc3d (diff) |
[DOC] Fix default offset of String#byterindex
Diffstat (limited to 'string.c')
-rw-r--r-- | string.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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: |