mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
fix Regexp#inspect document.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14088 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
7f65110b53
commit
6af5227ec0
1 changed files with 2 additions and 2 deletions
4
re.c
4
re.c
|
@ -313,7 +313,7 @@ rb_reg_source(VALUE re)
|
||||||
* <code>#inspect</code> actually produces the more natural version of
|
* <code>#inspect</code> actually produces the more natural version of
|
||||||
* the string than <code>#to_s</code>.
|
* the string than <code>#to_s</code>.
|
||||||
*
|
*
|
||||||
* /ab+c/ix.to_s #=> /ab+c/ix
|
* /ab+c/ix.inspect #=> /ab+c/ix
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static VALUE
|
static VALUE
|
||||||
|
@ -329,7 +329,7 @@ rb_reg_inspect(VALUE re)
|
||||||
* rxp.to_s => str
|
* rxp.to_s => str
|
||||||
*
|
*
|
||||||
* Returns a string containing the regular expression and its options (using the
|
* 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
|
* <code>Regexp::new</code> to a regular expression with the same semantics as
|
||||||
* the original. (However, <code>Regexp#==</code> may not return true when
|
* the original. (However, <code>Regexp#==</code> may not return true when
|
||||||
* comparing the two, as the source of the regular expression itself may
|
* comparing the two, as the source of the regular expression itself may
|
||||||
|
|
Loading…
Reference in a new issue