From 477cb2b8d80fddf15749b14dfd4d9c99efef8c08 Mon Sep 17 00:00:00 2001 From: stomar Date: Thu, 11 May 2017 18:56:32 +0000 Subject: [PATCH] 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 --- string.c | 8 ++++---- 1 file 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 sym.to_s.match(obj). + * Returns sym.to_s.match. */ 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 sym.to_s.match?(obj). + * Returns sym.to_s.match?. */ static VALUE