aboutsummaryrefslogtreecommitdiffstats
path: root/re.c
diff options
context:
space:
mode:
authorzzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-09-26 16:07:10 +0000
committerzzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-09-26 16:07:10 +0000
commitdc308ee37bd6595554a860950d64a70c9475cfbd (patch)
tree32c9067bf30bfb917ecd64acb71f639c71b875fd /re.c
parentb96a432e00c4121b15f63272858bb6f257d4c16e (diff)
downloadruby-dc308ee37bd6595554a860950d64a70c9475cfbd.tar.gz
* re.c: [DOC] arguments of Regexp::union receive #to_regexp [Bug #8205]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43061 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 're.c')
-rw-r--r--re.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/re.c b/re.c
index 9954805a9a..a7074d8282 100644
--- a/re.c
+++ b/re.c
@@ -3276,6 +3276,9 @@ rb_reg_s_union(VALUE self, VALUE args0)
* Regexp.union("skiing", "sledding") #=> /skiing|sledding/
* Regexp.union(["skiing", "sledding"]) #=> /skiing|sledding/
* Regexp.union(/dogs/, /cats/i) #=> /(?-mix:dogs)|(?i-mx:cats)/
+ *
+ * Note: the arguments for ::union will try to be converted into a regular
+ * expression literal via #to_regexp.
*/
static VALUE
rb_reg_s_union_m(VALUE self, VALUE args)