ruby-changes:2597
From: ko1@a...
Date: 3 Dec 2007 00:46:35 +0900
Subject: [ruby-changes:2597] akr - Ruby:r14088 (trunk): fix Regexp#inspect document.
akr 2007-12-03 00:46:21 +0900 (Mon, 03 Dec 2007)
New Revision: 14088
Modified files:
trunk/re.c
Log:
fix Regexp#inspect document.
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/re.c?r1=14088&r2=14087
Index: re.c
===================================================================
--- re.c (revision 14087)
+++ re.c (revision 14088)
@@ -313,7 +313,7 @@
* <code>#inspect</code> actually produces the more natural version of
* the string than <code>#to_s</code>.
*
- * /ab+c/ix.to_s #=> /ab+c/ix
+ * /ab+c/ix.inspect #=> /ab+c/ix
*/
static VALUE
@@ -329,7 +329,7 @@
* rxp.to_s => str
*
* Returns a string containing the regular expression and its options (using the
- * <code>(?xxx:yyy)</code> notation. This string can be fed back in to
+ * <code>(?opts:source)</code> notation. This string can be fed back in to
* <code>Regexp::new</code> to a regular expression with the same semantics as
* the original. (However, <code>Regexp#==</code> may not return true when
* comparing the two, as the source of the regular expression itself may
--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml