From 4b068a63cc940649f60e1a189d51ffe948db3875 Mon Sep 17 00:00:00 2001 From: mame Date: Tue, 3 Jun 2008 13:37:59 +0000 Subject: * ext/strscan/strscan.c (strscan_exist_p): fix document. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16798 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ ext/strscan/strscan.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index bad575ed0..89cd7df31 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Tue Jun 3 22:37:26 2008 Yusuke Endoh + + * ext/strscan/strscan.c (strscan_exist_p): fix document. + Tue Jun 3 22:33:29 2008 Yusuke Endoh * test/ruby/test_dir.rb: add tests to achieve over 90% test coverage diff --git a/ext/strscan/strscan.c b/ext/strscan/strscan.c index 99c0451e3..5cce33763 100644 --- a/ext/strscan/strscan.c +++ b/ext/strscan/strscan.c @@ -573,7 +573,7 @@ strscan_scan_until(VALUE self, VALUE re) * s = StringScanner.new('test string') * s.exist? /s/ # -> 3 * s.scan /test/ # -> "test" - * s.exist? /s/ # -> 6 + * s.exist? /s/ # -> 2 * s.exist? /e/ # -> nil */ static VALUE -- cgit