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:
stomar 2017-05-11 18:56:32 +00:00
parent 160d730ef4
commit 477cb2b8d8

View File

@ -9984,9 +9984,9 @@ sym_match(VALUE sym, VALUE other)
/* /*
* call-seq: * 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 static VALUE
@ -9997,9 +9997,9 @@ sym_match_m(int argc, VALUE *argv, VALUE sym)
/* /*
* call-seq: * 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 static VALUE