summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
authorstomar <stomar@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-05-11 18:56:32 +0000
committerstomar <stomar@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-05-11 18:56:32 +0000
commit477cb2b8d80fddf15749b14dfd4d9c99efef8c08 (patch)
tree0b8c0b8701aae29a2ce475d8a509fb7ad3d72650 /string.c
parent160d730ef446dc59726518499754ad877609a2f5 (diff)
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
Diffstat (limited to 'string.c')
-rw-r--r--string.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/string.c b/string.c
index 4267f010a4..40917a49da 100644
--- a/string.c
+++ b/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