diff options
author | gsinclair <gsinclair@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-02-22 00:52:38 +0000 |
---|---|---|
committer | gsinclair <gsinclair@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-02-22 00:52:38 +0000 |
commit | ac19769719846acc72a0ffe13995e1a8797ae5c0 (patch) | |
tree | 0fbc0dc25e4c9e588650d989a1231be9ec826249 /re.c | |
parent | 84e968f06c88e7a3c30d20e056036e9ca73d0f70 (diff) | |
download | ruby-ac19769719846acc72a0ffe13995e1a8797ae5c0.tar.gz |
* re.c: corrected documentation format (rb_reg_initialize_m)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5801 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 're.c')
-rw-r--r-- | re.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1621,7 +1621,7 @@ rb_reg_match_m(re, str) * call-seq: * Regexp.new(string [, options [, lang]]) => regexp * Regexp.new(regexp) => regexp - * Regexp.compile(string [, options [, lang]]) => regexp + * Regexp.compile(string [, options [, lang]]) => regexp * Regexp.compile(regexp) => regexp * * Constructs a new regular expression from <i>pattern</i>, which can be either @@ -1634,7 +1634,7 @@ rb_reg_match_m(re, str) * <code>nil</code>, the regexp will be case insensitive. The <i>lang</i> * parameter enables multibyte support for the regexp: `n', `N' = none, `e', * `E' = EUC, `s', `S' = SJIS, `u', `U' = UTF-8. - * + * * r1 = Regexp.new('^a-z+:\\s+\w+') #=> /^a-z+:\s+\w+/ * r2 = Regexp.new('cat', true) #=> /cat/i * r3 = Regexp.new('dog', Regexp::EXTENDED) #=> /dog/x |