From 6af5227ec0a2d77edb5156d1c1b7e598d006bef8 Mon Sep 17 00:00:00 2001 From: akr Date: Sun, 2 Dec 2007 15:46:21 +0000 Subject: fix Regexp#inspect document. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14088 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- re.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/re.c b/re.c index d59357a21e..fca7f3a791 100644 --- a/re.c +++ b/re.c @@ -313,7 +313,7 @@ rb_reg_source(VALUE re) * #inspect actually produces the more natural version of * the string than #to_s. * - * /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 - * (?xxx:yyy) notation. This string can be fed back in to + * (?opts:source) notation. This string can be fed back in to * Regexp::new to a regular expression with the same semantics as * the original. (However, Regexp#== may not return true when * comparing the two, as the source of the regular expression itself may -- cgit v1.2.3