diff options
Diffstat (limited to 'ext/strscan/strscan.c')
-rw-r--r-- | ext/strscan/strscan.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/strscan/strscan.c b/ext/strscan/strscan.c index 227ed92305..81d3d84b9b 100644 --- a/ext/strscan/strscan.c +++ b/ext/strscan/strscan.c @@ -765,7 +765,7 @@ strscan_peek(self, vlen) * s.unscan * s.scan(/../) # => "te" * s.scan(/\d/) # => nil - * s.unscan # ScanError: cannot unscan: prev match had failed + * s.unscan # ScanError: can't unscan: prev match had failed */ static VALUE strscan_peep(self, vlen) @@ -783,7 +783,7 @@ strscan_unscan(self) GET_SCANNER(self, p); if (! MATCHED_P(p)) - rb_raise(ScanError, "cannot unscan: prev match had failed"); + rb_raise(ScanError, "can't unscan: prev match had failed"); p->curr = p->prev; CLEAR_MATCH_STATUS(p); |