summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
authorKazuhiro NISHIYAMA <zn@mbf.nifty.com>2022-03-09 15:15:11 +0900
committerKazuhiro NISHIYAMA <zn@mbf.nifty.com>2022-03-09 15:15:11 +0900
commitb068a53dc9f38e98141c8b43249c73289af557bb (patch)
tree393cbcddda049257cd497d887c6fb009c78c2ed1 /string.c
parentcd9a9bdfc57bd5e3f5378345720e3c6aa45fdc3d (diff)
[DOC] Fix default offset of String#byterindex
Diffstat (limited to 'string.c')
-rw-r--r--string.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/string.c b/string.c
index 67ea072407..716017ac59 100644
--- a/string.c
+++ b/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: