From 30379fa1e25c2dbc887e5ee80ddd601bfdd9f20b Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Wed, 12 Mar 2025 18:14:58 +0900 Subject: Merge strscan-3.0.6 --- ext/strscan/strscan.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ext/strscan/strscan.c b/ext/strscan/strscan.c index 9b646ab678..b83cad1842 100644 --- a/ext/strscan/strscan.c +++ b/ext/strscan/strscan.c @@ -22,7 +22,7 @@ extern size_t onig_region_memsize(const struct re_registers *regs); #include -#define STRSCAN_VERSION "3.0.5" +#define STRSCAN_VERSION "3.0.6" /* ======================================================================= Data Type Definitions @@ -1038,8 +1038,9 @@ strscan_empty_p(VALUE self) * This method is obsolete; use #eos? instead. * * s = StringScanner.new('test string') - * s.eos? # These two - * s.rest? # are opposites. + * # These two are opposites + * s.eos? # => false + * s.rest? # => true */ static VALUE strscan_rest_p(VALUE self) -- cgit v1.2.3