diff options
author | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-03 14:07:50 +0000 |
---|---|---|
committer | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-03 14:07:50 +0000 |
commit | 0ecd8c8bc2efe152b90023404fb3bd75c9706b13 (patch) | |
tree | 20cff7034708cd8aa78bd84e4b104a2c7bc4176c /ext/strscan | |
parent | e6c7da504fac54fe5911503ee73f193cae8fd2e0 (diff) | |
download | ruby-0ecd8c8bc2efe152b90023404fb3bd75c9706b13.tar.gz |
* ext/strscan/strscan.c (strscan_scan_full, strscan_search_full): fix
document.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16799 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/strscan')
-rw-r--r-- | ext/strscan/strscan.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/strscan/strscan.c b/ext/strscan/strscan.c index 5cce337638..7c6cf05bf3 100644 --- a/ext/strscan/strscan.c +++ b/ext/strscan/strscan.c @@ -530,11 +530,11 @@ strscan_check(VALUE self, VALUE re) } /* - * call-seq: scan_full(pattern, return_string_p, advance_pointer_p) + * call-seq: scan_full(pattern, advance_pointer_p, return_string_p) * * Tests whether the given +pattern+ is matched from the current scan pointer. - * Returns the matched string if +return_string_p+ is true. * Advances the scan pointer if +advance_pointer_p+ is true. + * Returns the matched string if +return_string_p+ is true. * The match register is affected. * * "full" means "#scan with full parameters". @@ -624,12 +624,12 @@ strscan_check_until(VALUE self, VALUE re) } /* - * call-seq: search_full(pattern, return_string_p, advance_pointer_p) + * call-seq: search_full(pattern, advance_pointer_p, return_string_p) * * Scans the string _until_ the +pattern+ is matched. + * Advances the scan pointer if +advance_pointer_p+, otherwise not. * Returns the matched string if +return_string_p+ is true, otherwise * returns the number of bytes advanced. - * Advances the scan pointer if +advance_pointer_p+, otherwise not. * This method does affect the match register. */ static VALUE |