string.c: docs for Symbol#{match,match?}
* string.c: [DOC] mention pos argument for Symbol#{match,match?}. Patch by Yuki Kurihara (ksss). [Fix GH-1606] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58666 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
160d730ef4
commit
477cb2b8d8
8
string.c
8
string.c
@ -9984,9 +9984,9 @@ sym_match(VALUE sym, VALUE other)
|
||||
|
||||
/*
|
||||
* call-seq:
|
||||
* sym.match(obj) -> MatchData or nil
|
||||
* sym.match(obj [, pos]) -> MatchData or nil
|
||||
*
|
||||
* Returns <code>sym.to_s.match(obj)</code>.
|
||||
* Returns <code>sym.to_s.match</code>.
|
||||
*/
|
||||
|
||||
static VALUE
|
||||
@ -9997,9 +9997,9 @@ sym_match_m(int argc, VALUE *argv, VALUE sym)
|
||||
|
||||
/*
|
||||
* call-seq:
|
||||
* sym.match?(obj) -> true or false
|
||||
* sym.match?(obj [, pos]) -> true or false
|
||||
*
|
||||
* Returns <code>sym.to_s.match?(obj)</code>.
|
||||
* Returns <code>sym.to_s.match?</code>.
|
||||
*/
|
||||
|
||||
static VALUE
|
||||
|
Loading…
x
Reference in New Issue
Block a user