summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-02 15:46:21 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-02 15:46:21 +0000
commit2a975ce20b69a67edad8ce5ba817fdb17c8937a4 (patch)
treec2438cb4e0549043d433918fcbf692ab883dbe4c
parent845534b6ea1ae241197846e9e48b7c44e75711d4 (diff)
downloadruby-2a975ce20b69a67edad8ce5ba817fdb17c8937a4.tar.gz
ruby-2a975ce20b69a67edad8ce5ba817fdb17c8937a4.tar.xz
ruby-2a975ce20b69a67edad8ce5ba817fdb17c8937a4.zip
fix Regexp#inspect document.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14088 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--re.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/re.c b/re.c
index d59357a21..fca7f3a79 100644
--- a/re.c
+++ b/re.c
@@ -313,7 +313,7 @@ rb_reg_source(VALUE re)
* <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 @@ rb_reg_inspect(VALUE re)
* 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