[前][次][番号順一覧][スレッド一覧]

ruby-changes:46552

From: stomar <ko1@a...>
Date: Fri, 12 May 2017 03:56:39 +0900 (JST)
Subject: [ruby-changes:46552] stomar:r58666 (trunk): string.c: docs for Symbol#{match, match?}

stomar	2017-05-12 03:56:32 +0900 (Fri, 12 May 2017)

  New Revision: 58666

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=58666

  Log:
    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]

  Modified files:
    trunk/string.c
Index: string.c
===================================================================
--- string.c	(revision 58665)
+++ string.c	(revision 58666)
@@ -9984,9 +9984,9 @@ sym_match(VALUE sym, VALUE other) https://github.com/ruby/ruby/blob/trunk/string.c#L9984
 
 /*
  * 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 https://github.com/ruby/ruby/blob/trunk/string.c#L9997
 
 /*
  * 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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]